gpt4 book ai didi

sql - bool 给出无效数据类型 - Oracle

转载 作者:行者123 更新时间:2023-12-02 04:52:02 26 4
gpt4 key购买 nike

我尝试在 Oracle SQL Developer 中创建表,但收到错误 ORA-00902。

这是我的表创建架构

CREATE TABLE APPOINTMENT(
Appointment NUMBER(8) NOT NULL,
PatientID NUMBER(8) NOT NULL,
DateOfVisit DATE NOT NULL,
PhysioName VARCHAR2(50) NOT NULL,
MassageOffered BOOLEAN NOT NULL, <-- the line giving the error -->
CONSTRAINT APPOINTMENT_PK PRIMARY KEY (Appointment)
);

我做错了什么?

提前致谢

最佳答案

上次我听说 Oracle 中没有 boolean 类型。请改用number(1)!

关于sql - bool 给出无效数据类型 - Oracle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19518415/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com