上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 41 下一页

2022年4月14日

mysql 查询数据带排行 当出时相同时 则排名相同 排行榜带分页

摘要: -- 此处select是为了分页 SELECT * FROM ( -- 此处select是为了增加排行 且 当前一个与当前出库数量相同则不增加排行 SELECT bb.*, ( IF ( @pre_out_stock_num <> bb.out_stock_num, @rank := @rank + 阅读全文

posted @ 2022-04-14 14:07 何苦-> 阅读(310) 评论(0) 推荐(0)

2022年4月13日

Mysql获取表结构数据,包括表的注释和字段的注释,可用于导出表结构数据

摘要: SELECT table_name 表名, ( SELECT table_comment FROM information_schema.TABLES WHERE TABLE_SCHEMA = '库名' AND TABLE_NAME = aa.table_name LIMIT 0, 1 ) 表备注, 阅读全文

posted @ 2022-04-13 13:59 何苦-> 阅读(418) 评论(0) 推荐(0)

msyql 开启日志 重置密码

摘要: linux下mysql 不能同时开启bin-log log两种日志 linux 线上/etc/my.cnf 查找命令 find / -name my.cnf windows my.ini 是否启用了日志 mysql>show variables like 'log_%'; 怎样知道当前的日志 mys 阅读全文

posted @ 2022-04-13 10:42 何苦-> 阅读(55) 评论(0) 推荐(0)

linux下mysql配置文件my.cnf最详细解释

摘要: MySQL配置文件在Windows下叫my.ini,在MySQL的安装根目录下;在Linux下叫my.cnf,该文件位于/etc/my.cnf。 可以查找下:find / -name my.cnf my.cnf的文件内容: 复制代码 [client] port = 3306 socket = /us 阅读全文

posted @ 2022-04-13 10:38 何苦-> 阅读(5036) 评论(0) 推荐(1)

mysql 查询两个时间段是否有交集的情况

摘要: // 数据库的字段 start_time, end_time // 输入的字段 a,b -- 第一种 SELECT * FROM test_table WHERE ( start_time >= a AND start_time <= b ) OR ( start_time <= a AND end 阅读全文

posted @ 2022-04-13 10:37 何苦-> 阅读(357) 评论(0) 推荐(0)

2022年4月12日

mysql 批量更新(插入)表字段 清洗数据 存储过程

摘要: CREATE DEFINER=`root`@`%` PROCEDURE `u_goods_support`() BEGIN declare i int; set i = 0; while i <= 100000 DO UPDATE u_goods_support ugs INNER JOIN goo 阅读全文

posted @ 2022-04-12 10:22 何苦-> 阅读(103) 评论(0) 推荐(0)

mysql 字符串匹配查询

摘要: SELECT count( 1 ) FROM product_tagrelate WHERE concat( ',', tag_ids, ',' ) LIKE concat( '%,', 2, ',%' ); 阅读全文

posted @ 2022-04-12 10:18 何苦-> 阅读(242) 评论(0) 推荐(0)

sql 让某字段查询结构显示为固定值

摘要: SELECT id,userName,'*****' AS PASSWORD FROM t_user; 阅读全文

posted @ 2022-04-12 10:17 何苦-> 阅读(438) 评论(0) 推荐(0)

2022年4月10日

java 多线程

摘要: // 通过Runtime方法来获取当前服务器cpu内核,根据cpu内核来创建核心线程数和最大线程数 int threadCount = Runtime.getRuntime().availableProcessors(); ThreadPoolExecutor threadPoolExecutor 阅读全文

posted @ 2022-04-10 16:22 何苦-> 阅读(29) 评论(0) 推荐(0)

微擎 生成密码规则

摘要: "{$passwordinput}-{$salt}-{$_W['config']['setting']['authkey']}"; 阅读全文

posted @ 2022-04-10 16:21 何苦-> 阅读(60) 评论(0) 推荐(0)

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 41 下一页

导航