您的位置:首页 > 数据库 > Oracle

Oracle生产固定GUID同时生成随机的GUID

2016-03-24 09:45 471 查看
select sys_guid() id,
t2.INTERNAL_ID,
t3.gmsfhm,
t2.hhnbid
from gzk_gongan_czrkjbxxb t3
join (select (select sys_guid() from dual) INTERNAL_ID, t1.hhnbid hhnbid
from gzk_gongan_czrkjbxxb t1
where t1.yhzgx in ('01', '02')
and t1.gmsfhm = '342623198704293424'
and t1.ryzt = '0'
and t1.jlbz = '1'
and t1.hb = '6') t2
on t3.hhnbid = t2.hhnbid
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle select