【发布时间】:2013-11-20 14:38:30
【问题描述】:
我有以下3个表,Data_Excel包含人的姓名、地址、城市和来源; Person表有名字和ID;我需要将地址源、地址、城市和 ID 插入到 person_location 中...其中 ID 来自 person 表,并且与 id 相对应的名称应该在 data_excel 表中匹配以获取所有详细信息
【问题讨论】:
-
到目前为止您尝试过什么?您是否有未提供预期结果的查询?
-
Select A.ID,A.P_name,source,P_address,P_city,P_country from data_excel, person A where A.name, A.ID in (Select id,name from person where ID > 6566 )我尝试像这样选择,但出现错误
标签: sql oracle-sqldeveloper sql-insert