a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 77|回复: 0

[综合] Oracle辅导:Oracle查询表名及模糊查询语句

[复制链接]
发表于 2012-8-4 13:54:49 | 显示全部楼层 |阅读模式
示例:   select table_name,tablespace_name,temporary from user_tables where table_name like '%PROV%'
8 }% q. G2 e; J+ f1 R  分析:4 i/ r5 a5 |( Q8 O. ?& F
  table_name:表名(varchar2(30));- B. U8 \$ G8 F+ k" k
  tablespace_name:存储表名的表空间(varchar2(30));
7 e9 ?* q0 P6 A2 q9 P; M8 o  temporary:是否为临时表(varchar2(1))。4 i; `( a7 k! |! |) ^: x. ^
  4种通配符的含义
9 c% Z$ I& u" ^! E( s3 h  % 表示零个或多个字符
7 B! [* c  x* \& {$ ^  _ 表示单个字符" }* a7 m( i+ t, b; v, @( ]
  [] 表示范围[a-f]或集合[abcdef]的任何单个字符
/ B) n5 Z" A6 Q; s3 s8 u  [^] 表示不属于指定范围的[a-f] 或集合[abcdef]的单个字符 通常表示[^a-f]   or [^abcdef]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-18 03:55 , Processed in 0.171083 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表