当前位置:Gxlcms > 数据库问题 > MariaDB -- 数据类型

MariaDB -- 数据类型

时间:2021-07-01 10:21:17 帮助过:37人阅读

));

技术图片

#查看  show tables;

技术图片

2>查看 表里有哪些字段

desc  clasees;

技术图片

3>查看表的结构

show  create table  clasees;

技术图片

4>创建一个稍微复杂一丢丢的表

创建students表(id, name, age, high, gender, cls_id)

create table students(
id tinyint unsigned,
name varchar(20),
age tinyint unsigned,
high decimal(5,2),
gender enum(,,人妖,中性) default (人妖),
cls_id tinyint unsigned);

#

技术图片

#2查看下

desc    students;

技术图片

 

MariaDB -- 数据类型

标签:一个   class   sign   div   int   des   占位符   顺序   数据类型   

人气教程排行