欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

insert into select和select into的使用和區(qū)別介紹

 更新時(shí)間:2013年09月21日 16:43:30   作者:  
insert into ... select 和 select ... into的使用上有哪些區(qū)別呢?在本文將為大家下詳細(xì)介紹下,不知道的朋友可以了解下
insert into ... select ...:可將表1中的全部數(shù)據(jù)或者部分?jǐn)?shù)據(jù)復(fù)制到表2中。

eg:
復(fù)制代碼 代碼如下:

insert into t2(id,name,pwd)
select id,name,pwd from t1

注:t2必須存在。t1中查詢的列名可不與t1列名相同。無(wú) values

select...into:查詢t1中的數(shù)據(jù),插入到t2中。

eg:
復(fù)制代碼 代碼如下:

select * into t2 from t1

注:t2被創(chuàng)建并填充數(shù)據(jù)。

相關(guān)文章

最新評(píng)論