Code: Select all
ZQuery.SQL.Text:='Insert into table1 Values(null,:field1)';
ZQuery.ParamByName('field1').Value := 'abcd';
Any suggestions ? Thank You.
Moderators: gto, EgonHugeist
Code: Select all
ZQuery.SQL.Text:='Insert into table1 Values(null,:field1)';
ZQuery.ParamByName('field1').Value := 'abcd';
Thank You seawolf for Your reply!seawolf wrote:Prepare statement will be implemented in version 7, so what you ask is partially implemented on the lastest snapshot.
Download it and try if it fits your requestes
Thank You for guidance !mdaems wrote:Hi,
....
Just in case you're using mysql : have a look at mysqlproxy. That's designed to do the job you're talking about.
Mark
Code: Select all
.......
// Main thread.
........
Zquery....AddParametrs;
Zquery.....Parse;
sTemp := Zquery......Preview;
do_some_delayed_inserts(sTemp,false);
.......
function do_some_delayed_inserts(sTemp:string,bFastConn:boolean)
.....
begin
...... create new thread and detach from main thread ......
...... in new thread ... :
if bFastConn then
Qry.Connection : = ... fast ....
else
Qry.Connection := ..... slow ....;
end;