|
一些测试
- ------------dm6------------
- SQL>desc dual;
- desc dual;
- COLNAME TYPE LENGTH NULLABLE
- 0 rows got
- time used: 0.646(ms).
- SQL>select * from dual connect by level<3;
- select * from dual connect by level<3;
- 用户数据中的CONNECT BY循环.error code = -1831
- SQL>select * from dual connect by rownum<3;
- select * from dual connect by rownum<3;
- 用户数据中的CONNECT BY循环.error code = -1831
- ------------dm7------------
- SQL>select * from dual connect by level<3;
- select * from dual connect by level<3;
- 无效的CONNECT BY子句.error code=-4033
- SQL>
- SQL>select * from dual connect by rownum<3;
- select * from dual connect by rownum<3;
- 第 1 行附近出现错误:
- 表达式中不允许包含ROWNUM.error code=-3705
- SQL>select * from dual connect by prior id=id;
- select * from dual connect by prior id=id;
- 用户数据中的CONNECT BY循环.error code=-4030
- SQL>create tablespace ts datafile 'D:\dmdbms\data\DAMENG\ts.dbf' size 2G;
- create tablespace ts datafile 'D:\dmdbms\data\DAMENG\ts.dbf' size 2G;
- 第 1 行, 第 67 列[G]附近出现错误:
- 语法分析出错.error code=-2007
- SQL>create tablespace ts datafile 'D:\dmdbms\data\DAMENG\ts.dbf' size 2048;
- time used: 18.445(ms) clock tick:30904337. Execute id is 300.
- SQL>create user t identified by t default tablespace ts;
- create user t identified by t default tablespace ts;
- 第 1 行附近出现错误:
- 密码长度不符合要求(6到48个字节).error code=-2504
- SQL>create user t identified by t12345 default tablespace ts;
- create user t identified by t12345 default tablespace ts;
- time used: 7.233(ms) clock tick:12115446. Execute id is 301.
- SQL>grant dba to t;
- grant dba to t;
- time used: 2.538(ms) clock tick:4243962. Execute id is 302.
- SQL>login
- server:localhost
- user name:t
- password:
- port:
- 用户名或密码错误.error code=-2501
- SQL>login
- server:localhost
- user name:T
- password:
- port:
- login time used:4.956(ms)
- 服务器[localhost]:处于普通打开状态
- SQL>create table t(c int);
- create table t(c int);
- time used: 16.131(ms) clock tick:27030390. Execute id is 303.
- SQL>insert into t select 1 union select 2 ;
- insert into t select 1 union select 2 ;
- 2 rows affected
- time used: 81.001(ms) clock tick:135757913. Execute id is 304.
- SQL>desc t
- 2 ;
- COLNAME TYPE LENGTH NULLABLE
- 1 C INT 4 Y
- 1 rows got
- time used: 15.391(ms) clock tick:25785687. Execute id is 305.
- SQL>create table big as select rownum rn from t,t,t,t,t,t,t,t,t,t,t,t,t;
- create table big as select rownum rn from t,t,t,t,t,t,t,t,t,t,t,t,t;
- 第 1 行附近出现错误:
- 重复的表名或别名[T].error code=-2194
- SQL>create table big as select rownum rn from t,t t1,t t2,t t3,t t4,t t5,t t6,t t7,t t8,t t9,t t10,t t11,t t12;
- create table big as select rownum rn from t,t t1,t t2,t t3,t t4,t t5,t t6,t t7,t t8,t t9,t t10,t t11,t t12;
- time used: 24.588(ms) clock tick:41194768. Execute id is 306.
- SQL>select count(*) from big;
- select count(*) from big;
- COUNT(*)
- 1 8192
- 1 rows got
- time used: 1.085(ms) clock tick:1809108. Execute id is 307.
- SQL>create t1m as select top 1000000 rownum c from big,big t1;
- create t1m as select top 1000000 rownum c from big,big t1;
- 第 1 行, 第 7 列[t1m]附近出现错误:
- 语法分析出错.error code=-2007
- SQL>create t1m as select top rownum c from big,big t1 where rownum<=1000000;
- create t1m as select top rownum c from big,big t1 where rownum<=1000000;
- 第 1 行, 第 7 列[t1m]附近出现错误:
- 语法分析出错.error code=-2007
- SQL>create t1m as select rownum c from big,big t1 where rownum<=1000000;
- create t1m as select rownum c from big,big t1 where rownum<=1000000;
- 第 1 行, 第 7 列[t1m]附近出现错误:
- 语法分析出错.error code=-2007
- SQL>create table t1m as select top 1000000 rownum c from big,big t1;
- create table t1m as select top 1000000 rownum c from big,big t1;
- time used: 1044.427(ms) clock tick:1750690052. Execute id is 308.
- SQL>select count(*) ,sum(c) from t1m;
- select count(*) ,sum(c) from t1m;
- COUNT(*) SUM(C)
- 1 1000000 500000500000
- 1 rows got
- time used: 156.699(ms) clock tick:262639073. Execute id is 309.
- SQL>
复制代码 |
|