KeyGen
Posted: Wed 12 Mar 2008 06:02
I need some samples on using KeyGen with TIBCQuery built in runtime
Where can I get this Info.
TIA
rcmz
Where can I get this Info.
TIA
rcmz
Discussion forums for open issues and questions concerning database tools, data access components and developer tools from Devart
https://forums.devart.com/
Code: Select all
IBCQuery1.SQL.Text := 'select * from emp';
IBCQuery1.KeyFields := 'empno';
IBCQuery1.KeyGenerator := 'emp_id';
IBCQuery1.Open;
IBCQuery1.Insert;
IBCQuery1.FieldByName('ENAME').AsString := 'AAA';
IBCQuery1.Post;
Code: Select all
INSERT INTO CLIENTS (ID, NAME)
VALUES (NEXT VALUE FOR my_gen, 'AAA')