Getting an autoupded value

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
-Cannon_Fodder-
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 15.10.2009, 00:45

Getting an autoupded value

Post by -Cannon_Fodder- »

I've used a ZConnection and a ZQuery to add records to a table, but now I need to do somthing different.

I need to add a record to a table with an autoupdate field and get the aupdated value from the newly added record. What Zeos components to I need to add and how to I connect them to do this?

I'm a noob to this.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi,

This depends a little on the database and the kind of autoupdated field you use.
For an autoincrement with mysql you can just append a record by providing all other fields. After the post (+ ApplyUpdates when using cachedUpdates) the autoinc value will be available in the dataset.

Mark
Image
Post Reply