求帮助delphi中关于sql
delphi吧
全部回复
仅看楼主
level 4
847427402 楼主
sql.Add('selectrq,pm,gg,sum(jz) as jz from ylrkb where andpm='''+trim(ComboBox1.Text)+''' and gg='''+trim(ComboBox2.Text)+''' and rq>='''+datetostr(DateTimePicker1.date)+''' and rq<='''+datetostr(DateTimePicker2.date)+'''
and (zt<>'''+'删除'+''' or zt is null) //这样的括号应该怎样改 在sql里面可以运行,delphi中提示错误
group byrq,pm,gg ');
2014年05月30日 13点05分 1
level 4
847427402 楼主
高手求告知
2014年05月30日 13点05分 2
level 7
showmessage(sql语句) 看一下
2014年05月30日 17点05分 3
level 8
你没有发现前面没有空格吗?
2014年05月31日 08点05分 4
level 8
多看下基础书吧
2014年05月31日 08点05分 5
level 6
看看Delphi入门书籍再来提问
2014年05月31日 18点05分 6
1