oracle查询表名,不区分大小写
2009-12-14 20:36
232 查看
示例:
select table_name,tablespace_name,temporary from user_tables where table_name like '%PROV%'
分析:
table_name:表名(varchar2(30));
tablespace_name:存储表名的表空间(varchar2(30));
temporary:是否为临时表(varchar2(1))。
4种通配符的含义
% 表示零个或多个字符
_ 表示单个字符
[] 表示范围[a-f]或集合[abcdef]的任何单个字符
[^] 表示不属于指定范围的[a-f] 或集合[abcdef]的单个字符 通常表示[^a-f] or [^abcdef]
本文作者:未知
-----------------------------------------------以下为个人添加
如果想不区分大小,可以先将table_name先转成大写或小写,然后再根据相应格式查找,
如:
select table_name from user_tables where lower(table_name) like 'txp%';
select table_name from user_tables where upper(table_name) like 'TXP%';
select table_name,tablespace_name,temporary from user_tables where table_name like '%PROV%'
分析:
table_name:表名(varchar2(30));
tablespace_name:存储表名的表空间(varchar2(30));
temporary:是否为临时表(varchar2(1))。
4种通配符的含义
% 表示零个或多个字符
_ 表示单个字符
[] 表示范围[a-f]或集合[abcdef]的任何单个字符
[^] 表示不属于指定范围的[a-f] 或集合[abcdef]的单个字符 通常表示[^a-f] or [^abcdef]
本文作者:未知
-----------------------------------------------以下为个人添加
如果想不区分大小,可以先将table_name先转成大写或小写,然后再根据相应格式查找,
如:
select table_name from user_tables where lower(table_name) like 'txp%';
select table_name from user_tables where upper(table_name) like 'TXP%';
相关文章推荐
- Oracle中不区分大小写查询使用正则表达式函数REGEXP_LIKE
- oracle 查询不区分大小写
- oracle 查询不区分大小写比较
- Oracle中处理不区分大小写查询的处理
- Oracle 查询不区分大小写 (正则函数)
- Oracle中处理不区分大小写查询的处理 .
- oracle 模糊查询不区分大小写 regexp_like
- oracle查询结果不区分大小写,oracle输入的不区分大小写
- Oracle中处理不区分大小写查询的处理
- oracle查询区分大小写
- Oracle 模糊查询不区分大小写
- mssql查询怎样去区分[大小写]及[全角半角]
- Oracle模糊查询(大小写判断)
- 数据库中查询区分大小写
- 关于mysql查询区分大小写
- sql查询区分大小写的写法
- SQLite区分大小写查询
- sqlite 模糊查询不区分大小写,以及区分大小写语句
- MySql查询条件区分大小写
- MySql查询不区分大小写解决方案(两种)