用sql查询时,如何设置与时间有关的条件语句? 有一个表中有个字段是日期型,我想查询某个日期的数据,日期是通过文本输入框输入的,如何把这个字符串转化成日期,用SQL语句进行查询? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 'select * from table where 日期=#'+edit.text+'#',这是Access数据库'select * from table where 日期='+QuotedStr(edit.text) :SQL数据库 query1.close;query1.sql.add('Select * from table where date='+FormatDatetime('yyyy/mm/dd,Edit1.text')) query1.close;query1.sql.add('Select * from table where date='+FormatDatetime('yyyy/mm/dd,Edit1.text'))query1.open; 继续庆祝豪赌获胜,继续派分 如何判断字段在数据库中是否能为空的问题,急!!请各位帮忙! 如何实现两form窗口之间的通信?? eps 图片转 jpg 格式。 紧急求救各位帮忙啊!!! 求Delphi制作PPT幻灯片演讲者模式 各位老大:请帮助!!!!! 关于系统Clipboard的问题 如何在dbgrid 中實現copy/paste等功能?急! 我想问一下,在程序中怎样使用示图? 有一动态SQl的问题,请教大家! 烦,给分...
'select * from table where 日期='+QuotedStr(edit.text) :SQL数据库
query1.sql.add('Select * from table where date='+FormatDatetime('yyyy/mm/dd,Edit1.text'))
query1.sql.add('Select * from table where date='+FormatDatetime('yyyy/mm/dd,Edit1.text'))
query1.open;