1
DROP TABLE IF EXISTS t1;
3
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY
4
, padding VARCHAR(200) NOT NULL
6
INSERT INTO t1 VALUES (1, "I love testing.");
7
INSERT INTO t1 VALUES (2, "I hate testing.");
8
INSERT INTO t1 VALUES (2, "I love testing")
9
ON DUPLICATE KEY UPDATE padding="I love testing";
11
DROP TABLE IF EXISTS `t1`;
12
CREATE TABLE t1 ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , padding VARCHAR(200) NOT NULL );
13
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
14
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
15
UPDATE `test`.`t1` SET `padding`='I love testing' WHERE `id`=2;
17
SET GLOBAL transaction_log_truncate_debug= true;