本例通過SQL語句把員工的信息存入到數據庫中
procedure TFrmTrans
var
ADOQuery: TADOQuery;
SQL: string;
begin
ADOQuery := TADOQuery
ADOQuery
SQL :=
SQL := SQL +
ADOQuery
with ADOQuery
begin
ParamByName(
ParamByName(
ParamByName(
if CBxSex
ParamByName(
else
ParamByName(
ParamByName(
ParamByName(
ParamByName(
end;
try
ADOQuery
finally
ADOQuery
end;
ADODataSet
GBxList
BtnSave
BtnNew
ShowMessage(
end;
From:http://tw.wingwit.com/Article/program/Delphi/201311/24925.html