言寸

导航

2019年5月10日 #

linux Cron 定时任务(centos 7.2 测试可用)

摘要: 1、Cron(学习笔记) 计划任务,是任务在约定的时间执行已经计划好的工作。 格式如下 Seconds Minutes Hours DayofMonth Month DayofWeek Year cmd 或 Seconds Minutes Hours DayofMonth Month DayofWe 阅读全文

posted @ 2019-05-10 20:51 言寸 阅读(305) 评论(0) 推荐(0)

xtrabackup2.4 部分备份

摘要: 环境 centos 7.2 mysql 5.7.20 阅读全文

posted @ 2019-05-10 14:46 言寸 阅读(118) 评论(0) 推荐(0)

mysql 5.7.20 动态sql 传入参数

摘要: drop procedure test; delimiter ;; CREATE procedure test() -- 取动态sql的值 -- 目前只测试出,在 where 后面, 可以用 ?,类似于 java的 preparestatement写法,-- 表名,查询字段 是否可以也用? 代替,目前没有测试成功 begin DECLARE v_sqlcounts varc... 阅读全文

posted @ 2019-05-10 11:07 言寸 阅读(4804) 评论(0) 推荐(0)

mysql 5.7.20 取得动态sql执行结果

摘要: drop procedure test; delimiter ;; CREATE procedure test() -- 取动态sql的值 begin DECLARE v_sqlcounts varchar(500); DECLARE recordcount varchar(500); set v_sqlcounts = concat('select 44 into @rec... 阅读全文

posted @ 2019-05-10 10:35 言寸 阅读(1589) 评论(0) 推荐(0)