记一次python开发中遇到查询sql条件为in时,写法如下:
sql = "SELECT * FROM tb_attribute WHERE name in ({}) and is_delete = 0".format( ','.join(["'%s'" % item for item in names]))
上一个:建议穷人养的10种猫100元以下!(建议穷人养的10种猫100元以下的猫)
下一个:Java8新特性之Instant详解