首页 > 代码库 > delphi中 ExecSQL 与 open

delphi中 ExecSQL 与 open

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

delphi中 ExecSQL 与 open