You are not logged in.
Pages: 1
hello,
My Code (I use zeosdbo ):
procedure TFrmMain.btnClick(Sender: TObject);
var
val: string;
begin
{ --- this do not work,
fClient.ExecuteNoResult(formatutf8('update `t_data` set `imgname`=''%''',
[AnsiToUtf8('錦錦.jpg')]), []);
}
// this work fine
val := '錦錦.jpg';
fClient.ExecuteNoResult('update `t_data` set `imgname`=?', [AnsiToUtf8(val)]);
{ ----- this will no work ----
sql := 'update `tb_status` set `imgname`=' + AnsiToUtf8('錦錦.jpg');
fClient.ExecuteNoResult(sql, []);
}
end;
Offline
thank you. I use Delphi 2007 & xe2
Offline
Pages: 1