![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I'm inserting into a FM6 table via ODBC, and the table has a non-modifyable serial number (auto-entered). any idea how i can get the value of that column for the record i just inserted? Thanks Andy |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
ursus, I'm accessing soley through ODBC... so no layouts involved. What i did is basically the equivolent of the @@IDENTITY variable in SQL Server. I *could* do the insert, and then Select Max( ID ) FROM table... but i'm not sure that guarantees me the ID of the row I just inserted (as opposed to a row inserted *after* my insert, but *before* my select). Hope that clears what I'm looking for up a bit. Andy |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
ursus, Yes, I've looked through the help, and haven't found what I need, which is why I'm asking here if and how it can be done. The best I could do is a select immediately after the insert.. but I'm not sure that would ensure I have the row i inserted, and not someone else. Thanks Andy |
#7
| |||
| |||
|
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |