- 博客(13)
- 收藏
- 关注
原创 5.25数据库建表语句
shop_goods_label_price_id int unsigned not null comment '商品 标签 价格表ID',shop_goods_label_type_id int unsigned not null comment '分类ID',goods_label_type_name varchar(50) not null comment '商品标签分类',shop_goods_type_name varchar(50) not null comment '分类名字',
2023-05-25 16:10:11 40
原创 5.18数据库复习+课堂笔记
2 | 药学院 | 3 | 2 | 3 | 3 | 药学 || 2 | 药学院 | 3 | 2 | 3 | 3 | 药学 |
2023-05-18 17:51:56 38
原创 5.11数据库课堂笔记
3. python 操作数据库需要扩展包 pymysql。exit() 退回 python 交互终端。# 5.1 对于查询类, 需要解析结果集。1. 打开终端, python -V。# Python 操作 MySQL。2. 打开终端, pip -V。# 2. 获取指针、游标。# 4. 执行SQL语句。配置解析结果集类型为字典。# 1. 链接数据库。# 3. 准备SQL。# 1. 链接数据库。
2023-05-18 15:46:15 30
原创 Instant类,Localdata类,Localtime类,LocalDateTime类,Duration类,Period类,Integer类
System.out.println("将获取到的Localdata实例格式化为:" + now.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")));System.out.println("将获取到的Localtime实例格式化为:" + time.format(DateTimeFormatter.ofPattern("HH:mm:ss")));
2023-05-08 12:01:01 41
原创 5.4数据库课堂笔记
(1, "OPPO K10x 极光 8GB+128GB 67W超级闪充 5000mAh长续航 120Hz高帧屏 6400"),(2, "OPPO A36 6GB+128GB 晴川蓝 高通骁龙680 5000mAh长续航 90Hz炫彩屏"),- `like "%字符串%"` 匹配包含指定字符的。- `like "字符串%"` 匹配指定字符开头的。- `like "%字符串"` 匹配指定字符结尾。- `like "字符串"` 精确匹配。2. 用户名 (MySQL的用户名)不同的引擎 数据存储、查询的方式不同。
2023-05-04 16:01:13 30
原创 4.27数据库笔记
student_id int unsigned not null auto_increment unique comment "学生ID",| 4 | 甜甜 | 80 || 5 | 困困 | 0 || 4 | 甜甜 | 80 || 5 | 困困 | 0 |
2023-04-27 16:07:47 32
原创 4.20数据库课堂笔记
student_sex char(2) default '保密' comment '学生性别'student_sex char(2) default '保密' comment '学生性别'student_sex char(2) default '保密' comment '学生性别'student_sex char(2) default '保密' comment '学生性别'insert into student04 values (null, '甜甜', '女');
2023-04-20 17:56:10 34
原创 4.6课堂笔记
insert into student (student_name,student_id, student_age) values( '小甜甜', 1, 18);insert into student (student_id, student_name, student_age) values(1, '小甜甜', 18);insert into student (student_id, student_name, student_age) values(2, '小萍萍', 18);
2023-04-06 17:57:49 40
原创 3.30数据库课堂笔记
INSERT INTO student (id, student_name) VALUE (1, "小甜甜");student_gender varchar(255) comment"学生性别",student_name varchar(255) comment "学生名字",student_age varchar(255) comment"学生年龄"创建数据表 student (字段与字段之间用 逗号 隔开)看到 mysql> 提示符, 说明连接成功。1. 字段与字段之间用 逗号 隔开。
2023-03-30 17:03:40 85
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人