Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Example というテーブルがあり、その中に 1 つの列がある場合、(たとえば) 色は次のようなことができます。
INSERT INTO Example VALUES ('Red','Black','Green');
値ごとにコードを 3 回別々に書く代わりに?
INSERT INTO Example (column_name) VALUES ('Red'),('Black'),('Green');
はい、これはできますが、フォーマットがオフになっています。
INSERT INTO `Example` (`color`) VALUES ('Red'), ('Black'), ('Green')
各行は、行の値を括弧で囲んだコンマで区切る必要があります。