記錄、分享

          mysql事件自動復(fù)制表

          begin
              set @table_sql ='create table coordinate';
              #set @table_sql =  concat(@table_sql,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s'));
              set @table_sql = concat(@table_sql,curdate()+1);
              #set @table_sql = concat(@table_sql,'daycounts');
              set @table_sql =  concat(@table_sql,"(
                select * from coordinate
              )");
               PREPARE stmt1 FROM @table_sql;
               EXECUTE stmt1;
              end;

          posted on 2011-09-21 14:36 張生 閱讀(431) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          <2011年9月>
          28293031123
          45678910
          11121314151617
          18192021222324
          2526272829301
          2345678

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 苍南县| 禄丰县| 高要市| 梓潼县| 襄樊市| 油尖旺区| 扶余县| 利川市| 边坝县| 九台市| 台州市| 确山县| 禹州市| 利川市| 樟树市| 漳州市| 凤城市| 甘孜| 木里| 凯里市| 日照市| 句容市| 冀州市| 思茅市| 湖州市| 建水县| 滨海县| 白玉县| 秦皇岛市| 兴山县| 永靖县| 余干县| 秦安县| 望都县| 武夷山市| 历史| 左权县| 高平市| 固安县| 云林县| 乌鲁木齐县|