i have file and i am reading the file in list using python. then these needs to be used in sqlquery in the IN clause. File is read using a functionreadCsv & contents are stored in list(file may have more than 10k records at times) and now i have to pass this list to sqlquery in value1 & value2 & so on. any suggestions will be appreciated.
 def readCsv():
        with open(filename, 'r', encoding='latin1') as file:
               csvreader = csv.reader(file)
                for row in csvreader:
                     nlist.append(row)
                       
 if __name__ == '__main__':
       nlist = [] 
       readCsv()
       sqlquery = "select col1,col2 from tablename where col3 in ('value1',,'value2')     
 
    