最初由 linzhan 发布
[B]哈哈,你仔细看看你错误代码!
表名称可以是tab吗?!! [/B]
我只是随便起了个名称而己,较什么真啊,表名称为什么不能是tab?
SQL> create table tab(id int);
表已创建。
SQL> insert into tab values(1);
已创建 1 行。
SQL> select id from tab;
ID
----------
1
SQL> drop table tab;
表已丢弃。
SQL> select * from tab where rownum create table tab(id number not null,
2no number(4,0) default to_number(to_char(sysdate,'yyyy')),
3str char(2));
表已创建。
SQL> insert into tab(id,str) values(1,'a');
已创建 1 行。
SQL> select * from tab;
ID NO ST
---------- ---------- --
1 2003 a
|