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

INSERT INTO 与 SELECT INTO 的区别和使用

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:44:56
Original
1569 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:
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
Latest Issues
php - pdo fails to insert data into database?
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
mongodb - How to batch insert data in mongoose?
From 1970-01-01 08:00:00
0
0
0
python - mysql insert error in multithreading
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template