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);

テキストはシングルクォートで囲み、数値は囲まないでください。値はカラムと順序が一致している必要があります。

INSERT はテーブルの下部に新しい行を追加します

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP