标签:mysql
mysql操作添加数据
首先创建数据库 create database xuanhun; 添加表和字段 create table user( id int auto_increment, //自动增长id的值 name char(30) not null, //非空 address char(50) not null, p……
10-20 立刻查看
mysql数据库的一些查询操作
查询所有数据库 show databases; 选择需要操作的数据库 use 数据库名; use abc; 查询表 show tables; 查看数据表字段类型(其中包括字段名,字段类型等信息) describe 表名; describe tb_grade; 或简写为: desc tb_grade; 查询全部字段数据 select * f……
10-20 立刻查看