1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| CREATE DATABASE study; use study; DROP TABLE IF EXISTS python_demo; CREATE TABLE python_demo ( id int NOT NULL AUTO_INCREMENT COMMENT '主键,自增', user_no int NOT NULL COMMENT '用户编号', user_name VARBINARY(50) NOT NULL COMMENT '用户名', password VARBINARY(50) NOT NULL COMMENT '用户密码', remark VARBINARY(255) NOT NULL COMMENT '用户备注', PRIMARY KEY (id,user_no) )ENGINE =innodb DEFAULT CHARSET = utf8 COMMENT '用户测试表';
INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1001,'张三01','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1002,'张三02','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1003,'张三03','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1004,'张三04','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1005,'张三05','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1006,'张三06','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1007,'张三07','admin','我是张三'); INSERT INTO python_demo(user_no, user_name, password, remark) VALUES (1008,'张三08','admin','我是张三');
|