1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| CREATE TABLE test_user ( name varchar(50) DEFAULT NULL, subject varchar(50) DEFAULT NULL, score int(11) DEFAULT NULL ); insert into test_user values ('zhangsan' , 'chinese' , 10), ('zhangsan' , 'math' , 20), ('zhangsan' , 'english' , 30), ('lily' , 'chinese' , 40), ('lily' , 'math' , 50), ('lily' , 'english' , 60), ('mini' , 'chinese' , 70), ('mini' , 'math' , 80), ('mini' , 'english' , 90); select * from test_user
|