Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting value of just inserted rows

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all.
Please, help me,

How can I get single field (attribute) value just inserted new row
into the table (by not using select query to find this row)?

(type of that field is serial),

>---
> lexx
 
Hiya,

Which RDBMS system are you using? Are you using an Autonumber (Identity) column? If so, in Sybase, there is global variable @@identity, which will tell you the last value used, depending on the system you are using, there may be an equivalent.

Tim
 
You might have better luck if you post your question in the PostgreSQL forum: forum699
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top