使用Oracle8i查询
如何使用Oracle8I将table1中的数据输出到table2中? 我使用的是Aqua Data Studio 7.5,后端是Oracl8i。
表 1:
Name Prods Cus_id
Mark Rice 87311870
Judy Rice 87364239
Judy Bowl 87364239
Tom Apple 87404026
Tom Milk 87404026
Tom Coffee 87404026
Smith Peanut 87500245
Smith Tea 87500245
Ortiz Egg 87569724
Ortiz Cheese 87569724
Ortiz Pizza 87569724
Ortiz Pepper 87569724
Hunt Chips 87570092
表 2:
Name Prod1 Prod2 Prod3 Prod4 Cus_id
Mark Rice 87311870
Judy Rice Bowl 87364239
Tom Apple Milk Coffee 87404026
Smith Peanut Tea 87500245
Ortiz Egg Cheese Pizza Pepper 87569724
Hunt Chips 87570092
How do I output the data from table1 into table2 using Oracle8I?
I am using Aqua Data Studio 7.5 and the backend is Oracl8i.
Table1:
Name Prods Cus_id
Mark Rice 87311870
Judy Rice 87364239
Judy Bowl 87364239
Tom Apple 87404026
Tom Milk 87404026
Tom Coffee 87404026
Smith Peanut 87500245
Smith Tea 87500245
Ortiz Egg 87569724
Ortiz Cheese 87569724
Ortiz Pizza 87569724
Ortiz Pepper 87569724
Hunt Chips 87570092
Table2:
Name Prod1 Prod2 Prod3 Prod4 Cus_id
Mark Rice 87311870
Judy Rice Bowl 87364239
Tom Apple Milk Coffee 87404026
Smith Peanut Tea 87500245
Ortiz Egg Cheese Pizza Pepper 87569724
Hunt Chips 87570092
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此示例:
来源:Oracle SQL:使用 Select 插入
See this example:
Source: Oracle SQL: Insert with Select