急求:TclientDataSet中CommandText内容的问题
我在写SQL语句时由于有个查询内容有:21.6"前壳(16:9),结果好像把字符串冒号当成传参数了,报 参数类型不正确
各位有什么解决方法?
[解决办法]
你把参数写正确不就可以了吗?
[解决办法]
是不是双引号的问题var sqlstr: string; str: string;begin str:='21.6"前壳(16:9)'; sqlstr:='select * from xxx where x='+quotedstr(str)+'';end;