📜  如何在sql代码示例中创建表

📅  最后修改于: 2022-03-11 15:05:25.706000             🧑  作者: Mango

代码示例6
//to create a table
CREATE TABLE students
( student_id number(4) primary key,
  last_name varchar2(30) NOT NULL,
  course_id number(4) NULL );

//to insert value
INSERT INTO students VALUES (200, 'Jones', 101);
INSERT INTO students VALUES (201, 'Smith', 101);
INSERT INTO students VALUE (202, 'Lee' , 102);