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)

导航