Guest_imported
New member
- Jan 1, 1970
- 0
Using Interbase and Delphi,
I try this using SQLDialect=1, but don't work, because there
are a field in database that is type "date".
ibQuery1.Close;
ibQuery1.SQL.Clear;
ibQuery1.SQL.Add ('INSERT INTO test2 ("' + edit1.text + '", "' + edit2.text + '"
');
ibQuery1.ExecSQL;
Using SQLDialect=3, I solve the problem by pass the parameters like this:
ibQuery1.Close;
ibQuery1.SQL.Clear;
ibQuery1.SQL.Add ('INSERT INTO test2
PARAM1,
ARAM2)');
ibquery1.params[0].asdate:=edit1.text;
ibquery1.params[1].asstring:=edit2.text;
ibQuery1.ExecSQL;
I expect that this help some of you.
I try this using SQLDialect=1, but don't work, because there
are a field in database that is type "date".
ibQuery1.Close;
ibQuery1.SQL.Clear;
ibQuery1.SQL.Add ('INSERT INTO test2 ("' + edit1.text + '", "' + edit2.text + '"
ibQuery1.ExecSQL;
Using SQLDialect=3, I solve the problem by pass the parameters like this:
ibQuery1.Close;
ibQuery1.SQL.Clear;
ibQuery1.SQL.Add ('INSERT INTO test2
ibquery1.params[0].asdate:=edit1.text;
ibquery1.params[1].asstring:=edit2.text;
ibQuery1.ExecSQL;
I expect that this help some of you.