Code: Select all
q:=TUniSQL.Create(nil);
try
q.Connection := aDatabase;
q.SQL.Text:='insert into t (FID) values (:FID);
q.ParamByName('FID').AsString:='111';
//q.Prepare;
q.Execute;
finally
q.Free;
end;
In fact, brought a table, just do insert, you can't do it .Very obvious bugs.
i test TuniQuery,same program.
error message:不允许从数据类型 sql_variant 到 varchar 的隐式转换。请使用 CONVERT 函数来运行此查询。
database version:sql server 2005
table name: t
Field: FID varchar(36),only a field.
unidac version: 4.5.10
delphi xe3.