改善Defaults

SQL> create table t_test1(id number,phone varchar2(20) default null);ide

Table created.
SQL> CREATE SEQUENCE seq_test start with 1 increment by 1;
SQL> select seq_test.nextval from dual;code

NEXTVAL

1

SQL> insert into t_test1(phone) values ('1666');rem

1 row created.it

SQL> select * from t_test1
2 ;table

ID PHONE

2 1666

SQL> alter table t_test1 add a2 varchar2(20) default null;class

Table altered.test

相關文章
相關標籤/搜索