当前位置:数据库 > Oracle >>

我在oracle 数据库中要创建一个表,创建的语句在下边,创建不成功,不知道哪的错误了,谁能帮我看看呢!

create table cjb ( id primary key varchar(12), xh not null number(13) unique, chinese not null int, english not null int, math not null int); 提示错误: ORA-00907: 缺失右括号
追问:难道就是吧末尾去掉一个;号(⊙_⊙)?
答案:create table cjb_test
(
id varchar(12) primary key,
xh number(13) not null unique,
chinese  int not null,
english  int not null,
math  int not null);

是否为空应放在类型 及 默认值 后面
其他:create table cjb
(
id primary key varchar(12),
xh not null number(13) unique,
chinese not null int,
english not null int,
math not null int) 

上一个:Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleDOG 服 务正在启动 .
下一个:我在用微软的SSMA链接oracle (远程的)现在跳出一个框,说是要oracle客户端软件8.1或更高版本。请求帮助

Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,