SQL - Insert Into . . . .
#1
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
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]
#4
Scooby Regular
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes
on
0 Posts
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
ATWRX
Full Cars Breaking For Spares
88
01 February 2016 07:28 PM