随笔分类 -  mysql

摘要:select table_name, table_comment, create_time, update_time from information_schema.tables-- where table_schema = (select database()) -- 当前数据库 select c 阅读全文
posted @ 2022-03-19 11:25 我没有出家 阅读(225) 评论(0) 推荐(0) 编辑
摘要:SELECT * FROM `tb_test` WHERE c_id ='123' AND create_time LIKE '2021-06-03%' AND find_in_set('A362',field) ; find_in_set('A362',field): field为字段名称 A36 阅读全文
posted @ 2021-06-04 18:07 我没有出家 阅读(176) 评论(0) 推荐(0) 编辑
摘要:where colum4 REGEXP "^[[:digit:]]{1}/[[:digit:]]{1}/[[:digit:]]{4}"=1 -- 2/3/2021 where colum4 REGEXP "^[[:digit:]]{1}/[[:digit:]]{2}/[[:digit:]]{4}"= 阅读全文
posted @ 2021-05-31 09:42 我没有出家 阅读(362) 评论(0) 推荐(0) 编辑
摘要:LOAD DATA LOCAL INFILE 'D:\\ss\\chongzhi\\T_RORD.csv' INTO TABLE cz_T_RECHARGE_SET_RECORDFIELDS TERMINATED BY ','OPTIONALLY ENCLOSED BY '"'LINES TERMI 阅读全文
posted @ 2021-05-26 17:27 我没有出家 阅读(44) 评论(0) 推荐(0) 编辑
摘要:public class DbInfoUtil { /** * 根据数据库的连接参数,获取指定表的基本信息:字段名、字段类型、字段注释 * @param driver 数据库连接驱动 * @param url 数据库连接url * @param user 数据库登陆用户名 * @param pwd 阅读全文
posted @ 2021-05-20 10:44 我没有出家 阅读(441) 评论(0) 推荐(0) 编辑
摘要:update zhanghuxinxi set jiaoyikahao = replace(replace(replace(replace (jiaoyikahao ,char(9),""),char(13),""),char(10),""),char(32),""); trim():这个函数只会去 阅读全文
posted @ 2021-05-10 10:54 我没有出家 阅读(517) 评论(0) 推荐(0) 编辑
摘要:1. mysqld --user=root 2. service mysqld start 阅读全文
posted @ 2021-04-06 10:54 我没有出家 阅读(89) 评论(0) 推荐(0) 编辑
摘要:CREATE DEFINER=`root`@`localhost` PROCEDURE `use1`() begin DECLARE myid VARCHAR(255); DECLARE no int; DECLARE mycursor CURSOR FOR SELECT `name` from s 阅读全文
posted @ 2021-04-01 09:17 我没有出家 阅读(28) 评论(0) 推荐(0) 编辑
摘要:select GROUP_CONCAT(name) from test GROUP BY age 阅读全文
posted @ 2021-03-30 16:49 我没有出家 阅读(458) 评论(0) 推荐(0) 编辑
摘要:-- ,293934.31,257000select remark, SUBSTRING_INDEX(SUBSTRING_INDEX(remark,',',2),',',-1) from tb_1207test -- 293934.31 -- ,293934.31,257000select rema 阅读全文
posted @ 2020-12-07 15:29 我没有出家 阅读(987) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示