数据库之select Into

SELECT INTO 语句

您可以把所有的列插入新表:

SELECT *
INTO new_table_name [IN externaldatabase] 
FROM old_tablename


或者只把希望的列插入新表:
SELECT column_name(s)
INTO new_table_name [IN externaldatabase] 
FROM old_tablename

 

 

posted @ 2021-07-15 17:10  书院小先生  阅读(449)  评论(0编辑  收藏  举报