with datacalldb.ADOsendlog do
begin
close;
sql.Clear;
sql.Add('select * from Tsend_log where context like ''%'+quotedstr(memo1.Text )+'%');
open;
while not eof do
begin
..........
SQL语句有问题,一运行就提示在memo1.text输入的内容格式错误,同引号也试过这样也不行,但编译没有问题,可以通过。
sql.Add('select * from Tsend_log where context like ''%'+quotedstr(memo1.Text )+'%''');
begin
close;
sql.Clear;
sql.Add('select * from Tsend_log where context like ''%'+quotedstr(memo1.Text )+'%');
open;
while not eof do
begin
..........
SQL语句有问题,一运行就提示在memo1.text输入的内容格式错误,同引号也试过这样也不行,但编译没有问题,可以通过。
sql.Add('select * from Tsend_log where context like ''%'+quotedstr(memo1.Text )+'%''');
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货