我原来的程序是拿delphi5写的,编译通过执行都没有问题,可是我转换到delphi7后,竟然有错误
具体如下
Line too long(more than 1023 characters)
不知道大家有没有遇到过这种问题,是怎么解决的
备注:我的语句并不长
为
SQLStr:='Select Substr(Dwmc,1,8) Dwmc,Count(*) Num from AA where Jcyy is null and Substr(Dwmc,1,7)='''+ copy(workcode,1,7) +''' and Qdsj between '''+ BeginYear +'-'+ BeginMonth +'-'+ '01' + '''and ''' + EndYear +'-'+ EndMonth +'-'+ '31'+''' group by Substr(Dwmc,1,8) ';
具体如下
Line too long(more than 1023 characters)
不知道大家有没有遇到过这种问题,是怎么解决的
备注:我的语句并不长
为
SQLStr:='Select Substr(Dwmc,1,8) Dwmc,Count(*) Num from AA where Jcyy is null and Substr(Dwmc,1,7)='''+ copy(workcode,1,7) +''' and Qdsj between '''+ BeginYear +'-'+ BeginMonth +'-'+ '01' + '''and ''' + EndYear +'-'+ EndMonth +'-'+ '31'+''' group by Substr(Dwmc,1,8) ';
解决方案 »
- 有谁知道PE是个什么概念 还有什么PE结构分析 这是啥意思
- 如何编写软件来配置Ftp站点?
- 窗口之间的对话
- 请教硬件高手:CPU风扇坏了,是否会造成Windows 提示 Call your hardware vendor for support
- ★★★ 招聘Delphi程序员1名。不知道在这里发贴是否违反规定
- 在线等待
- 送分:Delphi中如何調用CrystalReport做的報表?
- 一个关于ADOQuery数据查询的问题。
- 救命了!一个报表的问题!再线关注,一解决,立即给分!
- 构造sql生成器组件
- 打印时开启钱箱的问题?高手请进啊,在线等
- WideString 变量 如何判断里边装有多少字符
SQLStr := SQLStr + ' Jcyy is null and Substr(Dwmc,1,7)='''+ copy(workcode,1,7) +''' and Qdsj between '''+ BeginYear +'-'+ BeginMonth +'-'+ '01' + '''and ''' + EndYear +'-'+ EndMonth +'-'+ '31'+''' group by Substr(Dwmc,1,8) ';分开写啊
还有就是用参数方式
’Select * from TableName where param1 = :value1 and param1 = :value2.........‘
这样更简介
更容易阅读和修改
'table '+
'order by id';