TZQuery & LAST_INSERT_ID()
Posted: 22.09.2005, 13:00
Hi,
i am new to ZEOS components.
I use TZQuery with TDatasetProvider & TClientDataset to access a mysql-server 4.1.15 from BCB 6!
My test app is a simple master-detail-relation.
How can i get the autogenerated id after inserting the master record.
A simple "select LAST_INSERT_ID()" in TZQuery always return 0!
BDE's TQuery return the correct id of the master record.
I need the correct value to correct the corresponding master id in the detail record!
How can i get the right value?
Thx
hetfield
i am new to ZEOS components.
I use TZQuery with TDatasetProvider & TClientDataset to access a mysql-server 4.1.15 from BCB 6!
My test app is a simple master-detail-relation.
How can i get the autogenerated id after inserting the master record.
A simple "select LAST_INSERT_ID()" in TZQuery always return 0!
BDE's TQuery return the correct id of the master record.
I need the correct value to correct the corresponding master id in the detail record!
How can i get the right value?
Thx
hetfield