본문 바로가기
English
Adding rows with INSERT

INSERT adds a new row to a table. List the columns, then a matching set of VALUES:

INSERT INTO product (code, title, price, in_stock)
VALUES ('P04', 'Ruler', 1.20, 75);

Text goes in single quotes; numbers do not. The values must line up with the columns, in the same order.

INSERT INTO student VALUES (3, 'Sara') adds a third row

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP