- 博客(3)
- 收藏
- 关注
原创 2020-12-25
数据库mysql笔记 31.指定字段的插入语句:往表的某个字段插入数据时insert into 表名(字段名1,字段名2)values(值1,值2)–给stu表的stuno(char),stuname,插入001,张三insert into stu(stuno,stuname)values(‘001’,‘张三’)class:classno,classnameinsert into classvalues(‘001’,‘java一班’)2.不指定字段的插入语句:往表的所有字段插入数据时
2020-12-25 19:41:41 257
原创 2020-12-25
数据库mysql笔记 21.创建表create table 表名( 字段名 数据类型,字段名 数据类型,字段名 数据类型)–创建表student,该表有stuno(学号),stuname(学生姓名),age(年龄)create table student(stuno char(13),stuname varchar(50),age tinyint(3));create table 表名(字段名1 数据类型 primary key auto_increment not null,字
2020-12-25 19:38:41 504
原创 2020-12-25
数据库mysql笔记 11.创建数据库创建:create数据库:databasecreate database 数据库名–创建数据库,名字叫stu2.查看数据库查看:showshow databases3.选择数据库使用、选择:useuse 数据库名4.删除数据库删除:dropdrop database 数据库名1.整型有符号和无符号:unsignedtinyint:微整型smallint:小整型mediumint:中整型int:整型bigint:大整型age
2020-12-25 19:35:39 109
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人