記錄、分享

          mysql事件自動復制表

          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 張生 閱讀(423) 評論(0)  編輯  收藏


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


          網站導航:
           
          <2011年9月>
          28293031123
          45678910
          11121314151617
          18192021222324
          2526272829301
          2345678

          導航

          統計

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 灵丘县| 太仆寺旗| 峨山| 左贡县| 通渭县| 江门市| 黔东| 紫云| 女性| 柏乡县| 南投县| 民乐县| 泾川县| 雷州市| 甘南县| 临潭县| 宿松县| 英超| 中江县| 赞皇县| 儋州市| 肇东市| 周口市| 安多县| 宽甸| 睢宁县| 象山县| 康马县| 阿勒泰市| 垦利县| 枣庄市| 贵港市| 太保市| 彭阳县| 留坝县| 鄂托克旗| 长治市| 广南县| 信阳市| 太湖县| 敦煌市|