代码新手到Sql出错

时间:2017-03-29 10:50:39

标签: sql

请告诉我代码有什么问题

CREATE TABLE VISIT
PET_ID NUMBER (25),
VET_ID VARCHAR2(20),
VISIT_DATE DATE,
BASIC_COST NUMBER (8,2),
SYMPTOM VARCHAR2 (80),
TREATMENT VARCHAR2 (25),
);

1 个答案:

答案 0 :(得分:1)

首先是开场括号' ('缺少,即CREATE TABLE VISIT (

第二个' ,'在最后一列之后不需要,即TREATMENT VARCHAR2 (25)

CREATE TABLE VISIT (
PET_ID NUMBER (25),
VET_ID VARCHAR2(20),
VISIT_DATE DATE,
BASIC_COST NUMBER (8,2),
SYMPTOM VARCHAR2 (80),
TREATMENT VARCHAR2 (25)
);