Skip to content Skip to sidebar Skip to footer

Python List Of String To Sql In Parameter

I have this query in python: ssim_group = [S1200,S1300] query = '''select WIPMessageCnt from waferdata where recipename in (%s) and equipment = ? and

Solution 1:

ssim_group = ['S1200', 'S1300']
query = '''select WIPMessageCnt from waferdata where recipename in ('%s') and equipment = ? and runtype = ? order by  stopts desc limit 1''' % ("','".join(ssim_group))

Post a Comment for "Python List Of String To Sql In Parameter"