SQLUpdate with OraQuery
Posted: Fri 11 Feb 2005 18:30
Hola
First,please forgive me with my poor english,because english is not my native language.
MY TABLE IS THIS
in the UpdateSQLs of the OraQuery inside the Update
This errors appears: ORA-00911 invalid character
can help me correcting the incorrect code?
First,please forgive me with my poor english,because english is not my native language.
MY TABLE IS THIS
Code: Select all
TABLE1
ID number(10)
NAME varchar2(25)
Code: Select all
UPDATE adrh.TABLE1
SET
NAME = :NAME
WHERE
ID = :Old_ID;
Code: Select all
procedure TCargo.Button1Click(Sender: TObject);
begin
Oraquery.SQL.Text:='select * from ADRH.TABLE1 where ID=' + edit1.Text;
Oraquery.Open;
Oraquery.Edit;
Oraquery.FieldByName('NAME').AsString:= edit2.Text;
Oraquery.Post;
Oraquery.Session.StartTransaction;
Oraquery.Session.Commit;
Oraquery.CommitUpdates;
end;
can help me correcting the incorrect code?