Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
English

Adding rows with INSERT

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

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

ไทย

การเพิ่มแถวด้วย INSERT

INSERT เพิ่มแถวใหม่ลงในตาราง รายการคอลัมน์แล้วตามด้วยชุดของ VALUES ที่สอดคล้องกัน

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

ข้อความใส่ในเครื่องหมายอัญacct quotes;的数字不需要引号。值必须按顺序与列对齐,顺序相同。

INSERT เพิ่มแถวใหม่ลงด้านล่างของตาราง

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP