INSERT: Not all fields need to be specified

From SQLZOO
Jump to navigation Jump to search

INSERT: Not all fields need be specified. Default values may be specified in the CREATE TABLE clause - otherwise NULL is used.

schema:scott
DELETE FROM t_peep WHERE id=99
INSERT INTO t_peep (id) VALUES (99);
SELECT * FROM t_peep
DataWars, Data Science Practice Projects - LogoDataWars: Practice Data Science/Analysis with +100 Real Life Projects