惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - kalman

nodejs+express+jade安装备忘 Asp.net MVC应用在IIS7上部署后403错误解决方案 【转】禁止从终端服务器复制文件 FluentData Mysql分页的一个BUG 代码生成器Kalman Studio2.2发布,完美支持Oracle,不需要安装Oracle客户端 开发辅助工具Kalman Studio2.0发布,内置基于T4的代码生成器 如何在Yii Framework中使用PHPExcel组件【备忘】 T4代码生成器Kalman Studio发布 如何为Kalman Studio编写T4模板 - kalman - 博客园 发布基于T4模板引擎的代码生成器[Kalman Studio] 请谨慎设置WinForm控件DataGridView列的AutoSizeMode属性 安装apache_2.0.63-win32-x86出现no installed service named "apache2" - kalman .NET序列化与反序列化(转) 手工查杀Win32/Pacex.Gen,Win32/Genetik,Win32/PSW.Agent.NCC,Win32/PSW.QQPass.VD病毒 win2003下安装Look n Stop网络防火墙导致系统蓝屏(tcpip.sys - address F75F5390 base at F75B4000,DataStamp 4473b09e) 在线播放器代码大全(收藏) - kalman - 博客园 System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater 服务器: 消息 15135,级别 16,状态 1,过程 sp_validatepropertyinputs,行 100. 对象无效。不允许在 '.cash_flux' 上使用扩展属性,或对象不存在 Excel组件使用配置文档下载
【备忘】Oracle常用系统表(做代码生成器用得到)
kalman · 2013-02-25 · via 博客园 - kalman

select * from user_objects where object_type='TABLE';

select * from all_tables where owner='KH';

select * from dba_users; select * from user_all_tables;

select name,dbid from v$database;

--索引相关

select * from dba_indexes where owner='KH'; --索引,包括主键索引 select * from dba_ind_columns where index_owner='KH';--索引列 select i.index_name,i.uniqueness,c.column_name from dba_indexes i,dba_ind_columns c where i.index_name=c.index_name and owner='KH' and i.table_name ='BASE_DRIVER';--联接使用

select * from dba_tables where owner='KH'; select * from dba_tab_comments where owner='KH';

--获取表列表(包含表注释)

select t.OWNER,t.TABLE_NAME,t.NUM_ROWS,c.TABLE_TYPE,c.COMMENTS from dba_tables t left join dba_tab_comments c on t.TABLE_NAME = c.TABLE_NAME where t.owner='KH';

select * from dba_constraints where OWNER='KH' and CONSTRAINT_TYPE='P'; select * from dba_cons_columns where  OWNER='KH'

--获取表的主键列

select c.owner,c.constraint_name,c.table_name,cc.column_name,cc.position from dba_constraints c inner join dba_cons_columns cc on c.constraint_name = cc.constraint_name

where c.owner='KH' and c.constraint_type='P' and c.table_name='BASE_DRIVER';

select * from user_tab_columns where table_name='BASE_DRIVER' order by column_id; select * from dba_tab_cols where owner='KH' and table_name='BASE_DRIVER' order by column_id; select * from dba_tab_columns where owner='KH' and table_name='BASE_DRIVER' order by column_id; select * from dba_col_comments where owner='KH';

--获取表的数据列(包含列注释) c.DATA_LENGTH 数据长度,如果是NChar,NVarchar长度为定义长度的2倍,c.CHAR_COL_DECL_LENGTH,c.CHAR_LENGTH列定义长度

select c.COLUMN_ID,c.COLUMN_NAME,c.DATA_TYPE,c.DATA_LENGTH,c.DATA_PRECISION,c.DATA_SCALE,c.NULLABLE,c.DATA_DEFAULT,c.CHAR_COL_DECL_LENGTH,c.CHAR_LENGTH,cc.COMMENTS from dba_tab_columns c left join dba_col_comments cc on c.table_name=cc.table_name and c.column_name=cc.column_name where c.owner='KH' and c.table_name='BASE_DRIVER'order by c.column_id;

--获取序列

select * from dba_objects where owner='KH' and object_type='SEQUENCE';

--获取视图

select * from dba_views where owner='KH'

--获取存储过程

select * from dba_procedures where owner='KH'

select * from dba_source where type='PROCEDURE' and owner='KH' and name='' order by line;

--获取存储过程参数

select * from all_arguments where owner='KH' and package_name=''

待续。。。