Select name from syscolumns Where ID=OBJECT_ID('T_EXE_Audit_AdviceDetail') ...
分类:
数据库 时间:
2020-05-15 18:16:24
阅读次数:
85
组合索引与排序 步骤一 构造测试表 drop table TX1 purge; create table TX1 as select * from dba_objects; create index idx_object_id on TX1(owner,object_type); alter tab ...
分类:
数据库 时间:
2020-05-08 14:41:06
阅读次数:
84
1、sqlserver查看数据库下所有表的自增列 SELECT OBJECT_NAME(OBJECT_ID) 表名,name 字段名 FROM sys.columns WHERE is_identity = 1 ...
分类:
数据库 时间:
2020-04-28 19:02:02
阅读次数:
93
--sys用户 --锁表查询 SELECT OBJECT_NAME, MACHINE, S.SID, S.SERIAL# FROM GV$LOCKED_OBJECT I, DBA_OBJECTS O, GV$SESSION S WHERE I.OBJECT_ID = O.OBJECT_ID AND ...
分类:
数据库 时间:
2020-04-17 09:32:29
阅读次数:
84
--行转列小实例 --创建测试表 if object_id(N'test', N'U') is not null drop table test go with PivotTable as ( select 'xxx' as czy, '点赞' as czlx, 2 as num union all ...
分类:
其他好文 时间:
2020-04-14 22:58:12
阅读次数:
92
SQLSERVER if exists(select * from sysobjects where id=OBJECT_ID(N'VW_SZYD_YTCT') and objectproperty(id,N'IsView')=1) drop view VW_SZYD_YTCT --删除视图go c ...
分类:
数据库 时间:
2020-04-10 15:58:27
阅读次数:
90
生成测试表 conn liang/chengce243 create table tab_01(id int,name VARCHAR2(128)); insert into tab_01 select OBJECT_ID,OBJECT_NAME from dba_objects where row ...
分类:
其他好文 时间:
2020-04-01 13:15:46
阅读次数:
84
生成测试表 conn liang/chengce243 create table tab_01(id int,name VARCHAR2(128)); insert into tab_01 select OBJECT_ID,OBJECT_NAME from dba_objects where row ...
分类:
其他好文 时间:
2020-04-01 13:02:11
阅读次数:
95
生成测试表 conn liang/chengce243 create table tab_01(id int,name VARCHAR2(128)); insert into tab_01 select OBJECT_ID,OBJECT_NAME from dba_objects where row ...
分类:
其他好文 时间:
2020-04-01 12:45:24
阅读次数:
62
生成测试表 conn liang/chengce243 create table tab_01(id int,name VARCHAR2(128)); insert into tab_01 select OBJECT_ID,OBJECT_NAME from dba_objects where row ...
分类:
其他好文 时间:
2020-04-01 12:32:25
阅读次数:
72