0
点赞
收藏
分享

微信扫一扫

oracle case when的使用和将列连接成字符串

ZMXQQ233 2022-07-12 阅读 154


select a.*,b.name as appname,
(case a.dbsrctype when 1 then
(select serverIp||':'||port||','||username||'/'||password||'@'||dbname from t_database d where d.id=a.id)
else
(select url from t_webservice w where w.id=a.id)
end) as vmark
from t_dbsrc a
left join t_appsys b
on


举报

相关推荐

0 条评论