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

oracle怎么把查询出来的数字类型结果转换为字符串类型

2016-08-26 11:48 309 查看
 select * from CHK_YWCFSC where ywglsxh=( select to_char(dyzlsxh ) from yz_dyzl where  grsxh='462323' )

这是对的

 select * from CHK_YWCFSC where ywglsxh=to_char( select dyzlsxh  from yz_dyzl where  grsxh='462323' )

这是错的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: