傻王宠妃:废柴大小姐:这条sql语句怎么写?

来源:百度文库 编辑:高考问答 时间:2024/04/30 00:47:40
oracle 中怎么查看表中某字段末尾字符是空格的所有记录
select * from ua where vc2uastring like '% ' 或者select * from ua where vc2uastring like '%% '不行啊,有的没选出来。
注意! 是末尾字符是空格的都选出来啊!

shishi select * from ua where vc2uastring like '% %'

select * from ua where vc2uastring like '\% '需要一个转义符

select * from ua where vc2uastring like "% %"
好像是这相个样

如果你想得到一个数象22%
可以用select * from ua where vc2yastring like %\%