惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - 木饭

码农必读的 7 本计算机书 我已经三十多岁了,我该把时间投资在哪呢? SQL SERVER 2012 第五章 创建和修改数据表 の CREATE语句 SQL SERVER 2012 第五章 创建和修改数据表 の SQL SERVER中的对象名 SQL SERVER 2012 第四章 连接 JOIN语句的早期语法结构 & 联合UNION SQL SERVER 2012 第四章 连接 JOIN の OUTER JOIN,完全连接FULL JOIN,交叉连接CROSS JOIN C#高级编程第9版 第二章 核心C# 读后笔记 SQL SERVER 2012 第四章 连接 JOIN の INNER JOIN SQL SERVER 2012 第三章 T-SQL 基本语句 having子句 SQL SERVER 2012 第三章 T-SQL 基本语句 group by 聚合函数 C#高级编程第9版 第一章 .NET体系结构 读后笔记 SQL SERVER 2012 第三章 T-SQL 基本SELECT语句用法,Where子句详细用法 无法打开物理文件 "X.mdf"。操作系统错误 5:"5(拒绝访问。)"。 (Microsoft SQL Server,错误: 5120)解决 MVC view页面需要多个model,复杂网页的处理 中国福利彩票,牛B,开奖和数据传输有什么关系? Mvcpager以下各节已定义,但尚未为布局页“~/Views/Shared/_Layout.cshtml”呈现:“Scripts”。 骆驼男鞋怎么样,骆驼男鞋售后逆天,骆驼男鞋维修36天无结果。程序员屌丝的维权之路,直播。。。。。。 IOS7状态栏StatusBar官方标准适配方法 iphone原生cookie处理
SQL SERVER 2012 第三章 使用INSERT语句添加数据
木饭 · 2015-03-04 · via 博客园 - 木饭

INSERT [TOP (<expression>) [PERCENT] [INTO] <tabular object>
[(column list)]
[OUTPUT <output clause>]
{VALUES (<data values>) [,(<data values>)] [,...n]
| <table source>
| EXEC <procedure>
| DEFAULT VALUES

这个结构看起来崩溃,更基本的如下:

INSERT [INTO] <table>
[(column list)]
VALUES (<data values>) [,(<data values >)] [,...-n]

多行插入,只要在后面价格逗号“,”就可以再写一列值了
INSERT INTO Table
(id,name,pwd)
VALUES
(1,张三,123),
(2,李四,124)
一次性插入多条数据,可以减少往返服务器次数,提高性能。

INSERT INTO ...SELECT语句

USE AdventureWorks2012;

DECLARE @MyTable Table
(
SalesOrderID int,
CustomerID char(5)
);

INSERT INTO @MyTable
SELECT SalesOrderID, CustomerID
FROM AdventureWorks2012.Sales.SalesOrderHeader
WHERE SalesOrderID BETWEEN 44000 AND 44010;

SELECT *
FROM @MyTable;

用临时表的方法。临时表变量只存在与批处理中。

UPDATE Stores SET Name = Name + '-' + StroeCode;
DELETE Stores WHERE StoreCode = 'TEST';