ADO.NET 2.0 - 如何使用 DataView 来筛选数据
2009-07-04 15:12
441 查看
user_constraints:包括约束的所有信息;
user_cons_columns:约束视图的细视图;
set pages 50000
set feedback off
spool constraint.log
col parent format a27
col child format a27
col key format a21
select a.table_name Parent,
b.table_name Child,
column_name Key,
substr(position,1,1) P
from
user_constraints a, user_constraints b, user_cons_columns c
where
a.constraint_name = b.r_constraint_name
and a.constraint_name = c.constraint_name
order by 1, 2, 4;
spool off
//////////////////////////////////////////////////////////////////////
删除约束:
alter table 表名 drop constraint 约束名;
约束名可以从select constraint_name from user_constraints;
user_cons_columns:约束视图的细视图;
set pages 50000
set feedback off
spool constraint.log
col parent format a27
col child format a27
col key format a21
select a.table_name Parent,
b.table_name Child,
column_name Key,
substr(position,1,1) P
from
user_constraints a, user_constraints b, user_cons_columns c
where
a.constraint_name = b.r_constraint_name
and a.constraint_name = c.constraint_name
order by 1, 2, 4;
spool off
//////////////////////////////////////////////////////////////////////
删除约束:
alter table 表名 drop constraint 约束名;
约束名可以从select constraint_name from user_constraints;
相关文章推荐
- ADO.NET 2.0 - 如何使用 DataView 来筛选数据
- ADO.NET 2.0 - 如何使用 DataView 来筛选数据
- ADO.NET 2.0 - 如何使用 DataView 来排序数据
- ADO.NET 2.0 - 如何使用 DataView 来排序数据
- 如何使用 ASP.NET、ADO.NET 和 Visual C# .NET 查询和显示 Excel 数据
- 使用ADO.NET2.0提升数据交互性能
- 使用ADO.NET2.0提升数据交互性能(2)
- 使用ADO.NET2.0提升数据交互性能(5)
- 如何使用 ASP.NET、ADO.NET 和 Visual C# .NET 查询和显示 Excel 数据
- 使用asp.net 2.0的CreateUserwizard控件如何向自己的数据表中添加数据
- 如何使用 ASP.NET、ADO.NET 和 Visual C# .NET 查询和显示 Excel 数据
- 使用ADO.NET2.0提升数据交互性能(1)
- 如何使用 ASP.NET、ADO.NET 和 Visual C# .NET 查询和显示 Excel 数据
- 使用ADO.NET2.0提升数据交互性能 使用SqlBulkCopy批量写入数据库
- 使用ADO.NET2.0提升数据交互性能
- 如何:使用 ADO.NET 实体框架数据源创建数据服务(WCF 数据服务)
- ADO.NET 2.0:如何排除错误信息「当目前没有数据时,尝试读取无效」(C#)
- 使用ADO.NET2.0提升数据交互性能(3)
- [转贴]使用ADO.NET2.0提升数据交互性能(http://dotnet.chinaitlab.com/ADONET/739268.html)
- ADO.NET Entity Framework如何:使用实体数据模型向导(实体框架)