摘要:        
建立事件历史日志表-- 用于查看事件执行时间等信息create table t_event_history ( dbname varchar(128) not null default '', eventname varchar(128) not null default '', starttime    阅读全文
        
            posted @ 2019-08-06 19:24
激流勇进1
阅读(359)
评论(0)
推荐(0)
        
            
        
        
摘要:        
mysql -vvv -u root -p123456 test -e "truncate t_target;alter event ev1 on schedule at current_timestamp enable;alter event ev2 on schedule at current_    阅读全文
        
            posted @ 2019-08-06 19:24
激流勇进1
阅读(113)
评论(0)
推荐(0)
        
            
        
        
摘要:        
mysql> select * from test.t_event_history;(http://www.amjmh.com)+ + + + + + + + +| dbname | eventname | starttime | endtime | issuccess | duration | e    阅读全文
        
            posted @ 2019-08-06 19:24
激流勇进1
阅读(1535)
评论(0)
推荐(0)
        
            
        
        
摘要:        
mysql> select length(NULL), length(''), length('1');+ + + +| length(NULL) | length('') | length('1') |+ + + +| NULL | 0 | 1 |+ + + +1 row in set123456    阅读全文
        
            posted @ 2019-08-06 19:24
激流勇进1
阅读(137)
评论(0)
推荐(0)
        
            
        
        
摘要:        
有了以上信息我们就可以写出4条语句处理全部数据。为了调用接口尽量简单,建立下面的存储过程。 delimiter //create procedure sp_unique(i smallint) begin set @a:='1000-01-01 00:00:00'; set @b:=' '; if     阅读全文
        
            posted @ 2019-08-06 19:23
激流勇进1
阅读(203)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                 
 
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号