Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图创建一个名为 grad_candidates 的表
CREATE TABLE grad_candidates (student_id NUMBER(6), last_name VARCHAR2, first_name VARCHAR2, credits NUMBER(3), graduation_date DATE DEFAULT SYSDATE);
ORA-00906: 缺少左括号,谁能帮忙??
VARCHAR2需要一个数字绑定,例如:
VARCHAR2
last_name VARCHAR2(30),
因此,将您的代码更改为:
CREATE TABLE grad_candidates (student_id NUMBER(6), last_name VARCHAR2 (255), first_name VARCHAR2 (255), credits NUMBER(3), graduation_date DATE DEFAULT SYSDATE);
了解有关创建表语法的更多信息