读书人

oracl根本sql语句

发布时间: 2012-11-03 10:57:43 作者: rapoo

oracl基本sql语句
1.分页查询:

select a.owner 外键拥有者, a.table_name 外键表,a.constraint_name 约束名称, substr(c.column_name,1,127) 外键列, b.owner 主键拥有者, b.table_name 主键表, substr(d.column_name,1,127) 主键列 from user_constraints a, user_constraints b, user_cons_columns c, user_cons_columns d     where a.r_constraint_name=b.constraint_name and a.constraint_type='R'     and b.constraint_type='P' and a.r_owner=b.owner and a.constraint_name=c.constraint_name     and b.constraint_name=d.constraint_name and a.owner=c.owner     and a.table_name=c.table_name and b.owner=d.owner and b.table_name=d.table_name












读书人网 >SQL Server

热点推荐