Iam new to oracle.How to insert data in one table based on the status in the other table.The insert statement i use in sql server is not working in oracle.Any help is appreciated.
Please post the pertinent columns from Tables A and B, along with your code from SQL Server, and a functional narrative that tells (in plain English) precisely what you want to do.
Mufasa
(aka Dave of Sandy, Utah, USA @ 23:51 (09Dec03) GMT, 16:51 (09Dec03) Mountain Time)
My presumption from your code was that you needed all columns from both B and C in A. Although that seemed a bit strange to me, I presumed that you knew what you needed. If A and B have the same structure, then your code, as written certainly will not work (since if B has 8 columns and C has 12 columns, "SELECT * from B b, C c where b.id=c.id;" means that you had better have 20 columns in A.
You can specify just B columns by qualifying the "*" as:
"SELECT B.* from B b, C c where b.id=c.id;"
Let us know how that works,
Mufasa
(aka Dave of Sandy, Utah, USA @ 20:35 (11Dec03) GMT, 13:35 (11Dec03) Mountain Time)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.