Insert Only Specified Columns
suggest changeINSERT INTO Customers (FName, LName, Email, PreferredContact)
VALUES ('Zack', 'Smith', 'zack@example.com', 'EMAIL');
This statement inserts a new row into the Customers table. Only the listed columns are set. No value is provided for PhoneNumber, so that column is NULL if it has no default. Every NOT NULL column without a default must be included.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents