INSERT: Not all fields need to be specified

From SQLZOO
Revision as of 10:24, 17 July 2012 by Marek (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense