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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert new records using sequences

Status
Not open for further replies.

TimPro

Programmer
Feb 26, 2002
8
IE
Sorr for such a trivial problem, but could someone please tell me the syntax for inserting new rows in a db using sequences for a primary key.
thanks
 
In Forms you can use:

SELECT ZAKAZNIK_SEQ.NEXTVAL INTO :block1.ID FROM DUAL;

where :block1.ID is primary key.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top