下面是一个测试用例:
CREATE TABLE `test` (
`name` varchar(11) NOT NULL DEFAULT '',
`passwd` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
select * from test;
insert into test set name="aaa",passwd="bbbb";
update test set name="baa",passwd="ccc";
update test set name="aaa2",passwd="ccc" where name="aaa";