2024-04-24 01:16:58 发布
网友
我有一个sql查询,我想指定where查询之外的日期,以便可以根据需要进行更改。下面的代码不起作用,我不确定还可以尝试什么。在
startdate='2018-01-01' test=pd.read_sql("""select * from database.table where date > :startdate ; """ , connection)
这个怎么样
test=pd.read_sql('select * from database.table where date > {}'.format(startdate) , connection)
这个怎么样
相关问题 更多 >
编程相关推荐