SQL 仅插入指定的列

示例

INSERT INTO Customers (FName, LName, Email, PreferredContact)
VALUES ('Zack', 'Smith', 'zack@example.com', 'EMAIL');

该语句将在Customers表中插入新行。数据只会插入到指定的列中-请注意,没有为该PhoneNumber列提供任何值。但是请注意,not null必须包括所有标记为的列。