Home > Database > Mysql Tutorial > INSERT INTO 与 SELECT INTO 的区别和使用

INSERT INTO 与 SELECT INTO 的区别和使用

WBOY
Release: 2016-06-07 17:44:56
Original
1555 people have browsed it

SQL Server提供了两种快速复制表的方法,正好最近又用到了,记下: (1)INSERT INTO TableName1 SELECT columnNames FROM TableName2 WHERE TableName2.Column1 ='' and TableName2.Column2 ='' 这种方法适用于TableName1表 已经存在的情况下 ,把表TableNa

SQL Server提供了两种快速复制表的方法,正好最近又用到了,记下:

(1)INSERT INTO TableName1 SELECT columnNames FROM TableName2 WHERE TableName2.Column1 ='' and TableName2.Column2 =''

     这种方法适用于TableName1表已经存在的情况下,香港虚拟主机,服务器空间,把表TableName2中满足条件的记录追加到TableName1表中。

    

create table A ( Name nvarchar(10), Birthday date ) create table B ( Name nvarchar(10), Birthday date ) , ) , ) insert into B(Name,Birthday) ,服务器空间

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template