D
dingdingdang
Unregistered / Unconfirmed
GUEST, unregistred user!
我要完成sql操作,在query里输入如下代码:
query5.active:=false;
query5.SQL.Clear;
query5.SQL.Add('insert into depcount1(depname,countno) select DISTINCT depname,count(*) from yuangong2 group by depname;');
query5.Prepare;
table4.active:=true;
dbgrid2.Refresh;
query5.open;
(其中输入其他sql代码后,也是一样)
运行程序时,系统自动提示:"Error Creating Cursor Handle!"
不能完成正常的sql操作,请问是何缘故?
query5.active:=false;
query5.SQL.Clear;
query5.SQL.Add('insert into depcount1(depname,countno) select DISTINCT depname,count(*) from yuangong2 group by depname;');
query5.Prepare;
table4.active:=true;
dbgrid2.Refresh;
query5.open;
(其中输入其他sql代码后,也是一样)
运行程序时,系统自动提示:"Error Creating Cursor Handle!"
不能完成正常的sql操作,请问是何缘故?