mysql命令行创建表,插入表数据



create table t_hero(
id int unsigned auto_increment primary key,
name varchar(10) unique not null,
age tinyint unsigned default 0,
gender set("男", "女"),
state varchar(10)
);

 

 

insert into studentapp_student (name,age,sex,address)
values
("Lisa",20,"女","河北唐山"),
("张强",18,"男","河南安阳"),
("丽丽",28,"女","江苏南京")


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM