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

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - RedFox(低调)

多大的船决定要承担多大的阻力,多大的风浪会炼出多厉害的船长,大副,二副,水手。。。。很多时候不是你选择了风浪,而是风浪选择并决定了你!优秀的水手觉得不是战胜了风浪,而是适应了风浪。 jdk国内镜像 基于vue-cli的vs code设置 maven 国内完整源 怎么看待MYSQL的性能 java dom4j 读写XML cas4.2的安装 java websocket 解决openresty http客户端不支持https的问题 开源许可证GPL、BSD、MIT、Mozilla、Apache和LGPL的区别 为何Google这类巨头会认为敏捷开发原则是废话? git ldap 获取大众点评数据 svn for vs SQL 导出表数据存储过程 色彩设计,是产品设计,营销渠道的一个重要环节 腾讯或正在陷入全面危机? 项目实施与管理的几点建议 ERP与进销存软件的区别
sql xml
RedFox(低调) · 2013-07-02 · via 博客园 - RedFox(低调)
DECLARE @xml XML;
SET @xml = '<Root>
<Item name="entityType">ZBProductProfitsLossesTwo</Item>
<Item name="startDate"></Item>
<Item name="endDate"></Item>
<Item name="pageIndex">1</Item>
<Item name="pageSize">10</Item>
<Item name="SqlFilter"></Item>
<Item name="rows" Direction="Output"></Item>
</Root>';

create table #pp
(
 name nvarchar(50),
 value nvarchar(50),
 Direction nvarchar(50)
)


insert into #pp
SELECT '@' + v.value('(@name)[1]', 'nvarchar(50)') AS NAME
	,v.value('(.)[1]', 'nvarchar(50)') AS value
	,ISNULL(v.value('(@Direction)[1]', 'nvarchar(50)'), 'Input') AS Direction
FROM @xml.nodes('//Root/Item') T(v)
set nocount off

declare @var nvarchar(max)=''

select @var=@var+','+name+' '+Direction from #pp
set @var=SUBSTRING(@var,2,len(@var));
drop table #pp
print @var