ITPub博客

首页 > 数据库 > Oracle > Oracle数据库中的整型表示法

Oracle数据库中的整型表示法

原创 Oracle 作者:zhenghaishu 时间:2014-08-28 22:05:00 0 删除 编辑
Oracle数据库中的整型表示法

SQL> create table test1(id int);

Table created.

SQL> create table test2(id integer);

Table created.

SQL> create table test3(id Integer);

Table created.

从上面三个例子可以看出,用int/integer/Integer来表示整型都是可以的。

SQL> create table test4(id Integer(8));
create table test4(id Integer(8))
                             *
ERROR at line 1:
ORA-00907: missing right parenthesis

从上例可以看出,不能用Integer(数字)的形式。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29485627/viewspace-1259793/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-02-14

  • 博文量
    112
  • 访问量
    1057351