SQL - Insert Into . . . .
Thread Starter
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
I'm stuck !!
Syntax has got me stumpted. I need to copy the values of a tables' field called "barcode" into another tables' barcode field. They need to be created as new records.
How do I do this in Oracle SQL ?
Something like:
insert into long051002010.barcode values(select barcode from boxes051002) ????
[Edited by DJ Dunk - 8/27/2002 2:41:19 PM]
Syntax has got me stumpted. I need to copy the values of a tables' field called "barcode" into another tables' barcode field. They need to be created as new records.
How do I do this in Oracle SQL ?
Something like:
insert into long051002010.barcode values(select barcode from boxes051002) ????

[Edited by DJ Dunk - 8/27/2002 2:41:19 PM]
Dunk
you could try including a literal value in the SELECT to populate the NOT NULL column, depends if you need the data to be specific so
INSERT INTO <table> (SELECT col1, "literal" AS col2, col3, etc.)
worth a go
Gary
you could try including a literal value in the SELECT to populate the NOT NULL column, depends if you need the data to be specific so
INSERT INTO <table> (SELECT col1, "literal" AS col2, col3, etc.)
worth a go
Gary
Thread
Thread Starter
Forum
Replies
Last Post





