
数据库
Rick1993
这个作者很懒,什么都没留下…
展开
-
Mysql底层索引详解
1,原创 2019-10-05 19:57:55 · 521 阅读 · 0 评论 -
联合索引数据结构
参考:联合索引原创 2022-04-14 14:28:15 · 434 阅读 · 0 评论 -
事物的传播机制和隔离级别
数据库和spring的事物的传播机制和隔离级别1,数据库事物的传播特性和隔离级别2,spring事物的传播特性和隔离级别原创 2022-04-13 00:16:08 · 692 阅读 · 0 评论 -
mysql表字段支持表情
1,MySQL表字段支持表情设置ALTER TABLE poi_attribute_value MODIFY attribute_value TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;参考链接:https://www.cnblogs.com/tujietg/p/13358776.html原创 2020-12-09 15:14:30 · 573 阅读 · 0 评论 -
mysql offset用法
SQL查询语句中的 limit 与 offset 的区别:limit y 分句表示: 读取 y 条数据limit x, y 分句表示: 跳过 x 条数据,读取 y 条数据limit y offset x 分句表示: 跳过 x 条数据,读取 y 条数据原创 2020-11-21 16:39:48 · 17484 阅读 · 9 评论 -
创建一个存储过程
创建一个存储器://删除已存在的drop procedure if exists create_data;//分隔符delimiter ;;create PROCEDURE create_data()BEGINdeclare i int DEFAULT 1;while i<1000doinsert into test.t_student ( name, subject,...原创 2019-07-16 12:12:59 · 2301 阅读 · 0 评论 -
数据库索引
数据库索引失效的情况like “%_" 百分号在前;字符型字段为数字时在where条件里不添加引号;在索引列上使用函数,如substr,decode,instr等,或对索引列进行运算;B-tree索引is null不会走索引,is not null会走索引;位图索引is null, is not null 都会走索引;联合索引is not null 只要在建立的索引列(不分先后)都会走...原创 2019-07-16 15:47:15 · 295 阅读 · 0 评论 -
使用idea根据数据库表来生成对应的实体类
打开idea,找到database,选择想要连接的数据库类型输入数据库连接信息,点击test connection ,出现Successful, 然后点击Apply, OK3, idea右边会出现数据库的表,4,选中一张表右键,进入生成实体类的脚步目录5,进入到这里,idea左边的目录,点击进入groovy脚本文件,修改成你想要的生成格式6,下面代码就是我的groovy脚...原创 2019-09-10 11:09:14 · 3304 阅读 · 0 评论 -
mysql左连接中on and和on where的区别
on and是进行韦恩运算时 连接时就做的动作select * from a left join b on a.sid=b.sid and a.sid=1; 等价于:select * from a left join b on (a.sid=b.sid and a.sid=1);where是全部连接完后,再根据条件过滤select * from a left join b on a...原创 2019-07-13 16:42:54 · 305 阅读 · 0 评论