我在按钮下有代码:
.....
DataModule1.Query1.SQL.Add('select * from emailtable where 地址 = [email protected]');
......
不能执行。
换成:
.....
DataModule1.Query1.SQL.Add('select * from emailtable where 序号 = 1');
......
就可以查询了。为什么?其中:序号是关键字,整型。地址是char(80).
为什么?
.....
DataModule1.Query1.SQL.Add('select * from emailtable where 地址 = [email protected]');
......
不能执行。
换成:
.....
DataModule1.Query1.SQL.Add('select * from emailtable where 序号 = 1');
......
就可以查询了。为什么?其中:序号是关键字,整型。地址是char(80).
为什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货