网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 知识问答

oracle 模糊查询 如何 不区分大小写

时间:2026-02-13 11:29:28

1、创建一张用户表test_user

oracle 模糊查询 如何 不区分大小写

2、向用户表插入数据

oracle 模糊查询 如何 不区分大小写

3、Oracle数据库操作时使用LOWER()、UPPER()函数,

lower:大写字符转化成小写的函数

  select lower(表中字段) from 表名 --将表里的字段信息中含有字母的全部转成小写

upper:小写字符转化成大写的函数

  select upper(表中字段) from 表名 --将 user表里的字段信息中含有字母的全部转成大写

4、select * from c_table t where upper(t.name) like '%F%';--将字段全转成大写

select * from c_table t where lower(t.name) like '%f%';--将字段全转成小写

select * from c_table t where t.name like upper('%f%') or t.name like lower('%F%');

oracle 模糊查询 如何 不区分大小写

oracle 模糊查询 如何 不区分大小写

oracle 模糊查询 如何 不区分大小写

© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com