对于不用返回结果集的要用execsql
反之则用open;
insert ,update,delete就要用到execsql;
select就要用open
说得对,例子:
with query1 do
close;
SQL.Clear;
SQL.Add('Delete From Country Where Name=''England''');
ExecSQL;
对于不用返回结果集的要用execsql
反之则用open;
insert ,update,delete就要用到execsql;
select就要用open
说得对,例子:
with query1 do
close;
SQL.Clear;
SQL.Add('Delete From Country Where Name=''England''');
ExecSQL;