In an insert statement I want to insert some data from another table. I used select query inside the insert query, but the database gives error. I tried this in MySQL.
insert into t1(currency,price) values('USD', select price from t2 where id='10' )
Can anyone correct this query.
Thanks in advance..
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
posted
0
In Oracle, I dont think you can use both value & a select statement in a insert query. [ May 09, 2007: Message edited by: Srinivasa Raghavan ]