INSERT INTO T_MONITOR_USER_INFO (
METER_NO,
CONSUMER_NO,
USER_INFO,
COURT_ID
)
select * from
(
select
distinct
METER_NO,CONSUMER_NO,'wy' as USER_INFO,EPU_COURT as COURT_ID from T_METER
where
C_DISTRICTBCDID in
(
select
DISTINCT
DISTRICTBCDID
from QX_SGMTUSR_DTL
where RECORDDATE=210917
and SEGMENTID = 36
)
and C_ADDRESSID in
(
select
DISTINCT
ADDRESSID
from QX_SGMTUSR_DTL
where RECORDDATE=210917
and SEGMENTID = 36
)
and C_CHANNELID in
(
select
DISTINCT
CHANNELID
from QX_SGMTUSR_DTL
where RECORDDATE=210917
and SEGMENTID = 36
)
)
where rownum <= 100
今天的文章oracle insert into select写法分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/30774.html