Reputation: 598
Below is a line of one of my insert statements, it keeps throwing a missing comma error - however Im either blind as a bat or going stupid?!
INSERT INTO barrister (barrister_id,firstname,surname,telephone,email_address)
VALUES (NEXT VALUE FOR sq_barrister, 'John', 'Smith',
'01392345465', '[email protected]');
Upvotes: 0
Views: 222
Reputation: 454
Raul is right. NEXT VALUE FOR is from SQL Server. In Oracle, use
sq_barrister.nextval
Upvotes: 3