Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JDBC and Relational Databases
insert into join tables
Bob Kimmel
Greenhorn
Posts: 26
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Im having problem getting the syntax
right to insert into join tables. I
can view it in a select statement
so the joins are good.
This is how I thought is should look
like:
SQL> insert into CCEVS_PROJECTS_REGISTRY 2 (test_out_this_ID) 3 select CCEVS_PROJECTS_REGISTRY.PROJECT_ID 4 FROM (CCEVS_PROJECTS_REGISTRY 5 INNER JOIN CCEVS_TECHNOLOGY_REGISTRY ON CCEVS_PROJECTS_REGISTRY.PROJECT_ID 6 =CCEVS_TECHNOLOGY_REGISTRY.PROJECT_ID) 7 INNER JOIN CCEVS_PP_ASSIGNED_REGISTRY ON CCEVS_PROJECTS_REGISTRY.PROJECT_ID 8 =CCEVS_PP_ASSIGNED_REGISTRY.PROJECT_ID; (test_out_this_ID) * ERROR at line 2: ORA-00904: invalid column name
I tried this, and many other ways.
SQL> insert into CCEVS_PROJECTS_REGISTRY 2 PROJECT_ID VALUES (1234) 3 FROM (CCEVS_PROJECTS_REGISTRY 4 INNER JOIN CCEVS_TECHNOLOGY_REGISTRY ON CCEVS_PROJECTS_REGISTRY.PROJECT_ID 5 =CCEVS_TECHNOLOGY_REGISTRY.PROJECT_ID) 6 INNER JOIN CCEVS_PP_ASSIGNED_REGISTRY ON CCEVS_PROJECTS_REGISTRY.PROJECT_ID 7 =CCEVS_PP_ASSIGNED_REGISTRY.PROJECT_ID; FROM (CCEVS_PROJECTS_REGISTRY * ERROR at line 3: ORA-00933: SQL command not properly ended
Thanks,
Bob
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Ora Error in JSP
Search Query Problem
inserts into join tables
Regarding apply JOIN by using JPQL.
insert multiple values into a single column
More...