读书人

急求:TclientDataSet中CommandText内

发布时间: 2012-03-05 11:54:01 作者: rapoo

急求:TclientDataSet中CommandText内容的问题
我在写SQL语句时由于有个查询内容有:21.6"前壳(16:9),结果好像把字符串冒号当成传参数了,报 参数类型不正确
各位有什么解决方法?

[解决办法]
你把参数写正确不就可以了吗?
[解决办法]

Delphi(Pascal) code
是不是双引号的问题var  sqlstr: string;  str: string;begin  str:='21.6"前壳(16:9)';  sqlstr:='select * from xxx where x='+quotedstr(str)+'';end; 

读书人网 >.NET

热点推荐