基本问题

sql
阅读 35 收藏 0 点赞 0 评论 0

Query.sql
-- Creating a table named "students" and adding 3 columns
-- Setting the PRIMARY KEY to the student_id column
CREATE TABLE students (
    student_id INT PRIMARY KEY, 
    name VARCHAR (20),
    major VARCHAR (20)
);

SELECT * FROM students;

-- Inserting data into the table 
INSERT INTO students VALUES (3, 'Matt', 'Biology');

-- Inserting data into the table by specifying what column we are filling
INSERT INTO students(student_id, name) VALUES (4, 'Bob');

评论列表


问题


面经


文章

微信
公众号

扫码关注公众号