Py学习  »  Python

如何使用python在sql select语句中插入今天的日期?

Gokkul Kumar • 5 年前 • 1549 次点击  

我试图将today变量发送到sql中,但它不起作用。

import datetime from date

today = date.today()


stmt = "select agent_email from customer_interaction_fact where to_date(DT) >= + today + ORDER BY CONVERSATION_CREATED_TIME DESC"
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/40990
 
1549 次点击  
文章 [ 3 ]  |  最新文章 5 年前