程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> mysql數據庫重定名語句分享

mysql數據庫重定名語句分享

編輯:MySQL綜合教程

mysql數據庫重定名語句分享。本站提示廣大學習愛好者:(mysql數據庫重定名語句分享)文章只能為提供參考,不一定能成為您想要的結果。以下是mysql數據庫重定名語句分享正文



CREATE DATABASE `ct` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
            RENAME TABLE `51cola`.`commentmeta`
                  TO `ct`.`commentmeta`;
            RENAME TABLE `51cola`.`comments`
                  TO `ct`.`comments`;
            RENAME TABLE `51cola`.`customcontactforms_fields`
                  TO `ct`.`customcontactforms_fields`;
            RENAME TABLE `51cola`.`customcontactforms_field_options`
                  TO `ct`.`customcontactforms_field_options`;
            RENAME TABLE `51cola`.`customcontactforms_forms`
                  TO `ct`.`customcontactforms_forms`;
            RENAME TABLE `51cola`.`customcontactforms_styles`
                  TO `ct`.`customcontactforms_styles`;
            RENAME TABLE `51cola`.`customcontactforms_user_data`
                  TO `ct`.`customcontactforms_user_data`;
            RENAME TABLE `51cola`.`links`
                  TO `ct`.`links`;
            RENAME TABLE `51cola`.`options`
                  TO `ct`.`options`;
            RENAME TABLE `51cola`.`postmeta`
                  TO `ct`.`postmeta`;
            RENAME TABLE `51cola`.`posts`
                  TO `ct`.`posts`;
            RENAME TABLE `51cola`.`terms`
                  TO `ct`.`terms`;
            RENAME TABLE `51cola`.`term_relationships`
                  TO `ct`.`term_relationships`;
            RENAME TABLE `51cola`.`term_taxonomy`
                  TO `ct`.`term_taxonomy`;
            RENAME TABLE `51cola`.`usermeta`
                  TO `ct`.`usermeta`;
            RENAME TABLE `51cola`.`users`
                  TO `ct`.`users`;
DROP DATABASE `51cola`;
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved