編碼的世界 / 優質文選 / 歷史

mysql select into的用法


2022年5月22日
-   

 MySQL不支持Select Into語句直接備份表結構和數據,一些種方法可以代替,如下:
#MYSQL不支持:
Select * Into new_table_name from old_table_name; 這是sql server中的用法
#替代方法:
Create table new_table_name (Select * from old_table_name);

 
 
 

熱門文章