select '.'+f_key+'.',f_keypath from A
where to_char('.'+f_key+'.') <>f_keypath
...全文
1442打赏收藏
查询语句怎么把数字数据转换为字符串数据
A表 有两个字段 F_key(bigint) 数据是xxxxxxxxxx6748833460 f_keypath(NVARCHAR2(1000)) 数据是.xxxxxxxxxx6748833460. 我怎么写F_key 的数据前后加两点".."和f_keypath不一样的数据 select '.'+f_key+'.',f_keypath from A where to_char('.'+f_key+'.') f_keypath