请问下这段sql在delphi中怎么拼接!
delphi吧
全部回复
仅看楼主
level 1
select sum(sfcs) from feelist
where BM in (select sbm from WH where BS=1 or BT=1)
我是这样
strSQL := strsql+ 'select A = sum(sfcs) from feelist';
strSQL := strsql+ 'where BM in (select sbm from WH where BS=1 or BT=1)';
老是报错in附近语法错误
2015年12月17日 09点12分 1
level 8
strSQL := strsql+ 'where。。。。。。。
这个where前面的空格呢?
2015年12月21日 00点12分 2
level 1
看不懂就记个日志,看起来方便,你单从代码看,一时半会是看不出来。这需要经验
2015年12月25日 05点12分 3
1