Insert ID

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pcbb
Posts: 8
Joined: Sun 29 Jul 2012 12:31

Insert ID

Post by pcbb » Mon 02 Dec 2013 18:38

How to retrieve the ID generated for an AUTO_INCREMENT column by the previous query?

So I'll use insert and I want the ID.

AndreyZ

Re: Insert ID

Post by AndreyZ » Tue 03 Dec 2013 10:31

You should use the InsertId property. For more information, please read http://www.devart.com/mydac/docs/devart ... sertid.htm

Post Reply