Home  >  Article  >  Database  >  mysql存储过程跟任务调度器

mysql存储过程跟任务调度器

WBOY
WBOYOriginal
2016-06-07 16:26:471328browse

mysql存储过程和任务调度器 -- 创建月表和日表的存储过程delimiter $$use `devicitydb1`$$drop procedure if exists `createTable`$$create definer=`devicityusr01`@`%` procedure `createTable`()begin declare sql_str varchar(20000); declare tname varc

mysql存储过程和任务调度器
-- 创建月表和日表的存储过程
delimiter $$

use `devicitydb1`$$

drop procedure if exists `createTable`$$

create definer=`devicityusr01`@`%` procedure `createTable`()
begin
  declare sql_str varchar(20000);
  declare tname varchar(200);
  declare dataStr varchar(2000);
  declare i int;
  
  set i=0;
  while i
<p>?</p>



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn