本文实例讲述了Mysql查询语句简单操作。分享给大家供大家参考,具体如下: 查询 创建数据库、数据表 -- 创建数据库 create database python_test_1 charset=utf
本文实例讲述了Mysql查询语句简单操作。分享给大家供大家参考,具体如下:
查询
创建数据库、数据表
-- 创建数据库
create database python_test_1 charset=utf8;
-- 使用数据库
use Python_test_1;
-- students表
create table students(
id int unsigned primary key auto_increment not null,
name varchar(20) default '',
age tinyint unsigned default 0,
height decimal(5,2),
gender enum('男','女','中性','保密') default '保密',
cls_id int unsigned default 0,
is_delete bit default 0
);
-- classes表
create table classes (
id int unsigned auto_increment primary key not null,
name varchar(30) not null
);
--结束END--
本文标题: MySQL查询语句简单操作示例
本文链接: https://www.lsjlt.com/news/50905.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0