look, the easiest way to discover how this works is to test it --
Code:
CREATE TABLE cssExp
( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT
, foo VARCHAR(99)
, bar VARCHAR(99)
, UNIQUE ( foo,bar )
);
INSERT INTO cssExp ( foo,bar ) VALUES
( 'higglety','pigglety' )
,( 'frick','frack' )
,( 'tom','alertpay' )
;
so far so good, yes?
okay, now let's see if you can first predict what's going to happen when you run this --
Code:
INSERT INTO cssExp ( foo,bar ) VALUES
( 'bob','alertpay' )
;
will this be accepted or rejected?
Bookmarks