各住大虾:
我在删除表中数据时用的query组件。
代码如下:
with query_del do
begin
close;
sql.clear;
sql.add('delete from xuanke where selectno='''+edit1.text+''' and stuno='''+edit2.text+'''');
open;
end;
在运行时出现这样一个错误:Error creating cursor handle
按确定以后,数据库表中数据可以给删除。
请问如何解决这个出错问题?
我在删除表中数据时用的query组件。
代码如下:
with query_del do
begin
close;
sql.clear;
sql.add('delete from xuanke where selectno='''+edit1.text+''' and stuno='''+edit2.text+'''');
open;
end;
在运行时出现这样一个错误:Error creating cursor handle
按确定以后,数据库表中数据可以给删除。
请问如何解决这个出错问题?
begin
close;
sql.Text:='delete from xuanke where selectno='+quotedstr(edit1.text)+' and stuno='+quotedstr(edit2.text)+'';
Execsql;
end;
因为该SQL没有返回值