mysql複製表總結

在mysql的使用過程中有時需要對錶進行不同程度的複製,下面將介紹各種情況下的表複製方法; 目錄: 1、複製表結構 2、複製表結構和數據 3、複製數據 4、總結 正文: 1、複製表結構 1.1 create table new_table like old_table; 完全複製表結構,包括主鍵和完整性約束。 另外一個方法是使用show create table table_name\G; 然後更
相關文章
相關標籤/搜索