我用SQL查询,比方用animals.db库
在QUERY的SQL属性中加入 select * from animals where NAME='Boa'运行正确
但是用QUERY1.SQL.ADD('select * from animals where NAME='Boa@''会出现以下错误
[Error] Unit1.pas(36): Missing operator or semicolon 光标出现在@ 处
试了几个库,都是这样
不过,用LIKE 就可以
在QUERY的SQL属性中加入 select * from animals where NAME='Boa'运行正确
但是用QUERY1.SQL.ADD('select * from animals where NAME='Boa@''会出现以下错误
[Error] Unit1.pas(36): Missing operator or semicolon 光标出现在@ 处
试了几个库,都是这样
不过,用LIKE 就可以
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货