Passing lists to SQL Server 2005 with XML Parameters - Jon Galloway

分省份-城投债信用利差跟踪(私募债)20260206.xlsx 立即下载
导读:
   Passing lists to SQL Server 2005 with XML Parameters
  
   Overview
  SQL Server 2005's XML capabilities make it a easier to pass lists to SQL Server procedures.
   Background
  I recently needed to write a stored procedure which took a list of ID's as a parameter. That's one of those things that seems like it would be really simple, but isn't. You'd think you could just pass in a comma delimited string of id's: @ids = '3,5,7,8' and use something like 'SELECT * FROM Products WHERE ID IN (@ids)'. Nope, it doesn't work. I still remember my surprise when I ran into that six or seven years ago.
  There are a huge variety of workarounds for this issue - see Erland's comprehensive list ranging form SQL Server 6.5 to 2000. I've used several of these, and while they worked I never liked them. Probably the best method is to just use a SPLIT table valued function which splits your string and returns a table. It's clean, but all of your procedures depend on the existence of that function.
  It was also possible to use OPENXML in SQL Server 2000. The syntax was obviously put together by C++ programmers (you have to prepare a document and work with an integer handle, which feels a lot like a pointer), and there were some limitations to be aware of, but it pretty much worked.
  This time around, I decided to try this with SQL Server 2005's XML capabilities and see if it was any easier. It is.
   Getting started with SQL Server 2005's XML Syntax
  XML variables in SQL Server 2005 make it easy to "shred" XML strings into relational data. The main new methods you'll need to use are value() and nodes() which allow us to select values from XML documents.
  
  DECLARE@productIdsxmlSET@productIds=' 3 6 15 '
  SELECTParamValues.ID.value('.','VARCHAR(20)')FROM@productIds.nodes('/Products/id') asParamValues(ID)
  
  Which gives us the following three rows:
  3
  6
  15
   Alright, just show me how to pass a list in a procedure parameter already!
  Here's a proc which takes a single XML parameter. We first declare a table variable (@Products) and load the XML values into it. Once that's done, we can join against the @Products table as if it were any other table in the database.
  CREATEPROCEDURESelectByIdList(@productIdsxml) AS
  DECLARE@ProductsTABLE(ID int) INSERTINTO@Products(ID) SELECTParamValues.ID.value('.','VARCHAR(20)')FROM@productIds.nodes('/Products/id') asParamValues(ID) SELECT*FROMProductsINNERJOIN
  @ProductspONProducts.ProductID =p.ID
  Now we can call it as follows:
  
  EXECSelectByIdList @productIds=' 3 6 15 '
  
  Which gives us the following:
   ProductID ProductName SupplierID CategoryID QuantityPerUnit UnitPrice UnitsInStock UnitsOnOrder ReorderLevel Discontinued ID
  3 Aniseed Syrup 1 2 12 - 550 ml bottles 10 13 100 25 0 3
  6 Grandma's Boyse 3 2 12 - 8 oz jars 25 120 0 25 0 6
  15 Genen Shouyu 6 2 24 - 250 ml bottles 15.5 39 0 5 0 15
  In order to use this, you'll need to an XML string with your ID's. In our application, Stevewas handling the application code, and I talked him into doing this via quick and dirty string concatenation. His method worked great:
  
  publicstaticstringBuildXmlString(stringxmlRootName, string[] values)
  {
  StringBuilder xmlString =newStringBuilder();
  xmlString.AppendFormat("<{0}>", xmlRootName);for(inti =0;i
  {
  xmlString.AppendFormat("
?,>  }
  xmlString.AppendFormat(" ", xmlRootName);returnxmlString.ToString();
  }
   What's next?
  This is a very simple use of XML in SQL Server. You can pass complex XML documents containing business objects to insert and update in your relational tables, for instance. If you're going to do that with a large amount of data, have a look at Ayende's clever use of SqlBulkCopy to handle that more efficiently.
  PublishedFriday, February 16, 2007 1:01 AM by Jon Galloway
  Filed under: SQL, SQL Server
   Comments
  #This Old Code - Passing lists to SQL Server 2005 with XML ParametersFriday, February 16, 2007 10:47 AM by This Old Code - Passing lists to SQL Server 2005 with XML Parameters
  #re: Passing lists to SQL Server 2005 with XML Parameters
  cross apply would also be available if you just wanted to write a single query - no messing with temp tables - just 'join' against the xml.nodes() function directly...Monday, February 19, 2007 9:31 AM by chrisb
  #re: Passing lists to SQL Server 2005 with XML Parameters
  Jon,
  How do we do it with ADODB. I have a C++ dll connecting to SQL 2005.
  ADODB does not recognise xml data type, so I am trying to pass with varchar. I keep hitting Input error 80040E14. My input String is _bstr_t bstrDeviceList = _T("' /r/n /r/n /r/n /r/n '");
  If I pass a string like "Test" it works but not with XML.
  What could be possible?Friday, March 02, 2007 2:35 PM by Prasanna
  #re: Passing lists to SQL Server 2005 with XML Parameters
  @Prasanna - I haven't used ADODB for long time, so I'm not sure how you'd do this. I believe that ADODB can provide more detailed error messages via another property, which might give a better idea of what's wrong.
  Probably the easiest way to deal with this is to run a trace on the database (in SSMS, go to Tools, then SQL Server Profiler) and see exactly what SQL is being executed. You can copy the SQL statement and try to execute it in a query window and see what syntax error is reported.Friday, March 02, 2007 3:44 PM by Jon Galloway
  #re: Passing lists to SQL Server 2005 with XML Parameters
  Not being funny but I'm sure SQL does support a comma separated varchar value being passed in. We did this in SQL Server 2000 when we wanted to do a search for multiple words returned from a variant generator and all we passed in was a comma delimited string of the words, which the stored procedure then interrogated in the where clause.
  Seeing that the LIKE statement works with a variable, why wouldn't this?!Thursday, March 08, 2007 5:29 AM by GH
  #re: Passing lists to SQL Server 2005 with XML Parameters
  Hi,
  I used another technique to pass multiple values: Using a comma delimited string with id's as input parameter for a SQL query (blog.krisvandermast.com/UsingACommaDelimitedStringWithIdsAsInputParameterForASQLQuery.aspx).
  Grz, Kris.Friday, May 18, 2007 7:50 AM by Kris van der Mast
  #Passing lists to SQL Server 2005 using XML ??? innerlogic
  Pingback from Passing lists to SQL Server 2005 using XML ??? innerlogicThursday, June 07, 2007 11:41 AM by Passing lists to SQL Server 2005 using XML ??? innerlogic
  #re: Passing lists to SQL Server 2005 with XML Parameters
  How can I pass multiple nodes into a table like
   3 Joe 22 6 mike 50 15 'Tuesday, June 19, 2007 1:29 PM by mike
  #NHibernate's Xml In
  NHibernate's Xml InWednesday, June 20, 2007 11:33 PM by Ayende @ Rahien
  #re: Passing lists to SQL Server 2005 with XML Parameters
  I tried calling SqlAdapter.Fill(Datatable) after assigning the stored procedure as the select command to the adapter. Select command takes SqlXml variable as a parameter. It gives me "INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or query notifications and/or xml data type methods." I did set ARITHABORT to ON in the stored procedure, but didn't help. Executing stored procedure (exe stored_proc @xml) with an xml parameter works fine.Friday, June 22, 2007 4:29 PM by Gaurav Solanki
  #Have you ever wanted to pass an array of values into a sproc? XML is your friend
  Have you ever wanted to pass an array of values into a sproc? XML is your friendTuesday, July 03, 2007 9:08 PM by Kevin Isom
  #re: Passing lists to SQL Server 2005 with XML Parameters
  This is in response to Guarav Solanki. I am using a customized version of this stored procedure (thanks very much, Mr. Galloway!) and i ran into the same 'ARITHABORT' issue.
  After much wrangling with it, i finally resolved the problem by adding the following line to the stored procedure, directly FOLLOWING the 'AS' keyword:
  set ARITHABORT ON
  Again, this needs to be within the stored procedure, not above it like the 'set ANSI_NULLS ON' and 'set QUOTED_IDENTIFIER ON' statements usually are by default.
  Hope this helps.Tuesday, August 14, 2007 4:18 PM by Jesse
  #re: Passing lists to SQL Server 2005 with XML Parameters
  How can I form a query to select multiple nodes by using above format?Thursday, August 23, 2007 6:49 AM by chaitanya
  #re: Passing lists to SQL Server 2005 with XML Parameters
  There is a simple method.
  Just pass in a comma delimited string of id's: @ids = '3,5,7,8'
  Change it to have commas at the front and back: SET @ids = ',' + @ids + ','
  It will now look like this: ',3,5,7,8,'
  To get your results, use something like: SELECT * FROM Products WHERE @ids LIKE '%,' + ID + ',%'Thursday, August 30, 2007 3:21 PM by Paul
  #re: Passing lists to SQL Server 2005 with XML Parameters
  I am facing a problem while i pass xml as an intput to stored procedure.
  The problem is that there are ceratin special characters which when used as a part of xml give error.Like the input which i give to my sp is :
  Declare @XMLString XML
  Set @XMLString = N'
   '
  Exec sproc_Insert_Company @XMLString
  The error which i get on execution is: Msg 9421, Level 16, State 1, Line 2
  XML parsing: line 2, character 34, illegal name character..
  Its being generated because of the '&' being used in CompanyName.
  How to resolve it??
  plzz do help at the earliest...Tuesday, September 11, 2007 10:48 AM by Supriya
  #re: Passing lists to SQL Server 2005 with XML Parameters
  @Supriya - you need to escape the following characters:
  &(should be &)
  <(should be <)
>  >(should be >)
  You can do that with a simple string.Replace call:
  xmlString = xmlString.Replace("&", "&").Replace("<", "<").Replace(">", ">")Tuesday, September 11, 2007 11:55 PM by Jon Galloway
  #re: Passing lists to SQL Server 2005 with XML Parameters
  Thanx for the reply.........Thursday, September 13, 2007 1:47 AM by Supriya
  #re: Passing lists to SQL Server 2005 with XML Parameters
  I have a large block of xml I want to pass in as the @productsId from my .Net code. I can get the code to work fine when I use the sample xml posted here:
  xmlString = ' 3 6 15 '
  However, my xml string (which gets pulled from a table in the db, which is one large xml document) is much larger and contains values with special characters (", ', &, ...).
  Is there an encoding method, I need to use in order to encode my xml string and pass it to the stored proc.?Sunday, October 14, 2007 6:24 PM by lance
   Leave a Comment
  Title(required)
  Name(required)
  Your URL(optional)
  Comments(required)
  
  Remember Me?
  

本文转自
http://weblogs.asp.net/jgalloway/archive/2007/02/16/passing-lists-to-sql-server-2005-with-xml-parameters.aspx
【电力负荷预测】基于MATLAB App Designer的Excel数据导入与误差报告生成系统:融合多因素特征与多模型评价的图形化预测分析平台设计 MATLAB 负荷预测App Designer界面 内容概要:本文介绍了一个基于MATLAB R2025b开发的负荷预测系统,旨在实现从数据导入、质量检查、多因素特征构造、模型训练与选择、预测结果可视化到误差报告自动生成的完整流程。系统支持Excel、CSV和MAT文件导入,通过App Designer风格的图形界面进行交互操作。项目采用五类差异化随机过程生成模拟数据,构建了包含历史负荷保持法、岭回归和提升树集成模型的多模型预测体系,并通过时间一致性建模与防数据泄漏机制提高预测可信度。系统实现了标准化误差评价、结构化报告输出及实验复现机制,并具备良好的可扩展性,适用于电力系统短期负荷预测、工业企业能源管理、智慧园区协同管理等多个领域。 适合人群:具备一定MATLAB编程基础,熟悉数据处理、机器学习建模与图形界面开发的研发人员、工程师及高校师生。 使用场景及目标:①实现Excel/CSV/MAT文件的自动化导入与数据质量控制;②构建融合环境温度、湿度、光照、工业活动及休息日等多因素影响的负荷预测模型;③通过图形界面完成模型训练、预测结果展示与误差分析;④生成包含统计指标、逐时预测明细及图表的标准化Excel误差报告。 阅读建议:此资源以开发集成化负荷预测工具为目标,不仅涵盖算法实现,更强调工程化设计与用户体验。建议使用者结合文中提供的完整代码示例,重点理解数据流管理、模型验证策略与界面交互逻辑,并在实际应用中根据具体业务需求调整特征体系与预测范围。 立即下载

相关推荐

AI大模型医学影像诊断智能识别应用方案.pptx

AI大模型医学影像诊断智能识别应用方案.pptx

SCOPE_IDENTITY

导读:   SCOPE_IDENTITY   返回插入到同一作用域中的 IDENTITY 列内的最后一个 IDENTITY 值。一个作用域就是一个模块——存储过程、触发器、函数或批处理。因此,如果两个语句处于同一个存储过程、函数或批处理中,则它们位于相同的作用域中。   语法   SCOPE_IDENTITY( )   返回类型   sql_variant   注释   SCOPE_IDE

Leonard 1124

douyin-favorite-MyLike-main.zip

douyin-favorite-MyLike-main.zip

SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY的比较

导读:   SQL Server 2000中,有三个比较类似的功能:他们分别是:SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY,它们都返回插入到 IDENTITY 列中的值。   IDENT_CURRENT 返回为任何会话和任何作用域中的特定表最后生成的标识值。IDENT_CURRENT 不受作用域和会话的限制,而受限于指定的表。IDENT_CURREN

Leonard 665

风光储虚拟同步VSG并离网切换预同步控制仿真(Simulink仿真实现)

内容概要:本文针对风光储混合微电网系统,深入研究了虚拟同步发电机(VSG)技术在并网与离网两种运行模式间进行切换时的关键控制策略——预同步控制,并基于Simulink平台构建了完整的系统仿真模型以验证该策略的有效性。该模型集成了风力发电、光伏发电和储能系统,通过VSG控制算法赋予电力电子逆变器类似于传统同步发电机的惯性和阻尼特性,从而显著增强了微电网在模式切换过程中的动态稳定性与鲁棒性。其中,预同步控制环节是实现无缝切换的核心,它通过实时调节VSG输出电压的频率、相位和幅值,使其在并网开关动作前就与主电网的电压参数达到高度一致,有效消除了并网冲击电流,实现了平滑、无扰动的模式转换。通过仿真结果,可以系统地分析和优化控制器的各项参数,进而验证该整体控制方案的技术可行性与优越性能。; 适合人群:具备电力电子技术、自动控制理论和电力系统基础的专业知识,从事新能源发电、微电网运行与控制、电力系统自动化等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①研究风光储一体化混合微电网的能量管理策略与并离网无缝切换控制技术;②深入学习和掌握虚拟同步机(VSG)的工作原理、数学建模及其在逆变器控制中的具体实现方法;③利用Simulink进行复杂的电力系统动态仿真,以验证和评估新型控制算法的动态响应特性和有效性。; 阅读建议:此资源以Simulink仿真为核心实践工具,使用者应紧密结合电力系统的基础理论知识,深入理解VSG的数学模型和控制逻辑,尤其要重点关注预同步环节的控制策略设计,并通过反复调整仿真模型中的各项参数来观察系统的动态响应变化,从而深化对微电网稳定运行机制和高级控制技术的理解。

【顶级EI复现】新扩展移相角下的双有源桥DC-DC 变换器优化控制策略(Simulink仿真实现)

内容概要:本文聚焦于“新扩展移相角下的双有源桥DC-DC变换器优化控制策略”的研究与仿真实现,基于Simulink平台系统地构建了完整的仿真模型,深入探讨了软开关实现、最小电流应力优化及闭环控制策略的设计方法。文章提出一种改进型扩展移相(EPS)调制策略,通过引入扩展移相角有效拓宽软开关范围,提升变换效率并降低功率器件的电压与电流应力。结合KKT最优性条件与分段解析优化理论,实现了软开关与最小应力的协同控制目标,并设计双闭环控制系统以增强动态响应与鲁棒性。研究成果成功复现了高水平EI期刊论文的核心思想,具有较强的学术参考价值与工程应用意义。; 适合人群:电力电子、电气工程及其自动化等方向的研究生、科研人员,以及具备一定Simulink建模能力与电力电子拓扑控制基础的工程技术人员。; 使用场景及目标:①深入理解双有源桥(DAB)变换器的工作机理与先进控制策略;②掌握基于KKT条件的优化控制建模方法;③在Simulink中复现并验证EI级论文提出的控制算法,服务于科研论文撰写、课题研究或实际项目开发; 阅读建议:建议结合文中涉及的EPS调制、软开关条件推导、KKT优化数学建模等内容进行系统学习,重点关注仿真模块的参数设置、控制逻辑实现与波形分析,以全面掌握该优化策略的技术细节与工程实现路径。

JS XML验证及格式化处理

该代码提供XML验证、格式化及转换功能:isValidXML通过jQuery解析判断字符串是否为合法XML;formatXML对XML进行缩进美化,支持标签、文本、CDATA和注释;xmlToString将XML文档对象转为字符串;escapeHtml用于HTML转义。整体实现简洁,适用于前端XML处理场景。

程序就是世界 150

边缘计算环境中基于启发式算法的深度神经网络卸载策略(Matlab代码实现)

内容概要:本文系统探讨了在边缘计算环境中,如何利用启发式算法解决深度神经网络(DNN)的任务卸载问题,并提供了完整的Matlab代码实现方案。文章首先分析了边缘计算环境下DNN推理所面临的关键挑战,如计算资源受限、通信延迟敏感以及能效约束等;在此基础上,构建了以最小化任务延迟、系统能耗与经济成本为核心的多目标优化模型,并详细阐述了基于贪心算法、遗传算法、粒子群优化(PSO)等典型启发式算法的卸载决策机制。通过对多种应用场景的仿真实验,对比评估了不同算法在任务完成时间、资源利用率和能量消耗等方面的性能表现,验证了所提策略在提升系统整体效率方面的有效性与优越性。文档还包含了Matlab仿真环境搭建、参数配置说明及结果可视化方法,为相关研究提供了可复现、可扩展的技术框架。; 适合人群:具备一定计算机网络、边缘计算、人工智能或优化理论基础的研究生、科研人员及工程技术开发者,特别适用于从事DNN模型部署、边缘智能、任务调度与资源管理等相关领域研究的专业人士。; 使用场景及目标:① 研究边缘计算中深度学习模型的高效执行与部署策略;② 学习并实现基于启发式算法的计算任务卸载与资源协同优化方法;③ 利用Matlab平台进行智能算法仿真、性能评估与科研原型开发,支撑学术研究或工程实践。; 阅读建议:建议读者结合提供的Matlab代码逐章节深入阅读,重点关注问题建模、算法设计与仿真实验部分,动手运行并调试代码以加深对卸载机制与优化过程的理解,同时可根据实际应用场景对算法参数、目标函数或网络拓扑进行定制化改进与拓展研究。

Spring 框架AOP与 XML 基础

本文涵盖AOP配置文件方式与注解方式、JDBC模板技术、模拟转账开发、XML语法与约束、DOM4J与XPath等内容,并附核心易错点速查表。

既然你都点开这里了,那可以给我点个关注吗?可以吗?可以吗? 269

三相PWM整流器双闭环仿真(Simulink仿真实现)

内容概要:本文系统梳理了多个工程技术领域的仿真模型与算法实现,涵盖电力系统控制(如三相PWM整流器双闭环仿真、磁流变阻尼器非线性特性分析)、图像处理(如裂纹检测、双目视觉体积测量)、智能优化算法(如遗传算法、粒子群优化、NSGA-II、差分进化)在配电网重构、路径规划、调度优化中的应用,以及状态估计(如扩展卡尔曼滤波EKF、UKF)、无线能量传输、无人机协同控制等多个研究方向。文档整合了大量基于Matlab/Simulink的仿真实例与可复现代码资源,内容详实,结构清晰,适用于科研复现与工程实践。; 适合人群:具备一定编程基础,熟悉Matlab/Simulink环境,从事电气工程、自动化、控制科学、图像处理、优化算法或新能源系统研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①支撑高校课程设计、毕业设计及科研项目的模型搭建与算法验证;②开展电力系统分析、故障诊断、新能源调度、机器人路径规划、多无人机协同等复杂系统的仿真研究;③辅助高水平论文复现、算法性能对比与创新方法验证; 阅读建议:建议结合文中提供的完整仿真模型与代码资源,按照目录结构循序渐进地学习与实践,重点关注算法设计细节、参数配置逻辑及仿真结果分析方法,同时可通过公众号“荔枝科研社”获取配套资料与更新内容,全面提升科研效率与实践能力。

无刷直流电机BLDC无感+滑模观测器+转速电流双闭环PI控制(总共三个仿真模型)(Simulink仿真实现)

内容概要:本文介绍了基于Simulink的无刷直流电机(BLDC)无位置传感器控制仿真系统,重点构建了滑模观测器与转速电流双闭环PI控制相结合的三个仿真模型。通过无感控制技术,利用滑模观测器实时估算转子位置与速度,有效规避了传统霍尔传感器带来的硬件成本高与可靠性差等问题。系统采用经典的双闭环控制架构,外环为转速环,内环为电流环,结合PI调节器实现高精度调速与优异的动态响应性能。文章详尽阐述了控制策略的设计原理、仿真模型的搭建步骤,并提供了完整的仿真文件、参考文献与说明文档,便于学习者复现、调试与优化。该仿真体系不仅适用于BLDC电机在无感控制下的稳定性、鲁棒性及抗干扰能力研究,也为先进控制算法的工程化应用提供了实践平台,具有重要的教学与工程参考价值。; 适合人群:具备电机控制基本理论知识和Simulink仿真操作经验的电气工程、自动化、控制科学与工程等相关专业的研究生、科研人员及从事电机驱动开发的工程技术人员。; 使用场景及目标:①用于无刷直流电机无位置传感器控制算法的教学演示与科研验证;②为滑模观测器在电机控制系统中的设计与应用提供仿真测试平台;③实现转速与电流双闭环PI控制策略的性能评估、参数整定与动态优化;④支持与传统PID、模糊PID及其他智能控制方法的对比分析,深化对不同控制策略优劣的理解,提升复杂控制系统的设计与调试能力。; 阅读建议:此资源以Simulink仿真实现为核心,建议读者结合所提供的说明文档与参考文献,深入理解滑模观测器的设计原理、李雅普诺夫稳定性判据的应用以及双闭环控制系统的耦合机制。在学习过程中,应亲自动手搭建模型,调节控制器参数,观察转速、电流及位置估算波形,对比不同工况下的控制效果,从而系统掌握无感控制中的关键技术难点与解决方案。

使用lxml操作 Word 的 OpenXML 底层

本文综合介绍了使用lxml操作Word底层OpenXML文档的基础知识,并给出了一个效率远超VBA的提取Word文档中的表格的HTML表结构的实例,演示了用lxml获取及修改部分Word文档组成部件的文本、属性的方法。

yivifu的专栏 392

K-近邻算法: k-nearest neighbor classification (kNN) 详细介绍

@创建于:2020.04.09 @修改于:2020.04.09,2024.06.22 文章目录1、kNN介绍2、k近邻法的三要素详解2.1 距离度量2.2 k值的选择2.3 分类决策规则3、k近邻法的实现:kd树4、Python实现过程5、优缺点6、常见问题 1、kNN介绍 kNN是一个基本而简单的分类算法,作为监督学习,那么KNN模型需要的是有标签的训练数据,对于新样本的类别由与新样本距离最近的k个训练样本点按照分类...

chenhepg的博客 9万+

Java工具篇之Maven:从pom.xml到测试通过的JAR

用一个可运行Java项目讲清Maven的POM、坐标、依赖、生命周期与插件。通过三条单元测试、故意失败和恢复构建,验证测试怎样守住打包入口,并给出依赖树、有效POM及构建排错方法。

code2cat的博客 430

别再手动拆解字节了!用博图这个功能指令,5分钟搞定ARRAY转BOOL数组

本文详细介绍了西门子博图中`ARRAY_TO_BOOL`功能指令的高效应用,帮助工程师快速实现ARRAY到BOOL数组的转换。通过实战案例和参数配置指南,展示了如何5分钟内完成传统方法需半小时的任务,大幅提升PLC编程效率,特别适用于通信报文解析和设备状态监控。

weixin_42653691的博客 260

TIA protal与SCL从入门到精通(4)——软件单元使用

平台: TIA portal 15.1 1.添加软件单元 添加软件单元如下图: 关于软件单元使用基本限制,看如下文章即可 TIA protal与SCL从入门到精通(3)——软件单元基本介绍 每个软件单元是一个独立结构,所以每个软件单元的运行方式与实际PLC类似,所以首先添加主函数块: 注意:无论系统是否是具有并发性(这里不要混淆并行与并发的概念),在PLC所有主函数执行总是按主函数依次完成...

苦走一口田 7375

〖跨境物流架构 02〗报关单证自动化:XML 主链路、PDF 套打与单一窗口的幂等上传

跨境报关单证自动化核心在于厘清XML(申报数据)与PDF(留档随附)角色:二者同源生成,避免不一致。XML须结构化生成并经XSD校验,禁止字符串拼接;PDF采用iText7套打,确保与XML数据一致。上传需签名自检、以guid为幂等键、超时回查而非重推。回执状态机显式管理退单可修复、审结不可逆。含随附单据时必须打包ZIP,且文件名唯一。关键避坑:禁用拼接、勿漏打包、不盲目重推、退单须新报。统一数据对象、可靠传输、可追溯状态,方能实现快速清关。

Eyf • 半字节的博客 576

Unity3D 加密 Assembly-CSharp.dll (Android平台) 防止反编译

0、加密的原理 Unity3D 是基于 Mono的,我们平时写的 C# 脚本都被编译到了 Assembly-CSharp.dll ,然后 再由 Mono 来加载、解析、然后执行。 Mono 加载 Assembly-CSharp.dll 的时候就是读取文件到内存中,和平时读取一个 游戏资源 文件没什么区别。 为了防止别人破解,我们会对游戏资源加密,简单点的 比如修改文件的一个字节 或者 位移一下

Circle 8719

pandas 读取 XLSX 时出现 XML 解析错误

记录 pandas 读取 XLSX 时的 XML 解析错误,说明如何保留原文件、核对工作表及报错位置,并在副本上检查修复影响。

ailx10 164

Autosar Configuration(十四)SomeIP之配置SoAd

本文主要介绍SomeIp协议栈中的SoAd在Configurator中的详细配置

king110108的专栏 2600

SAP_MM模块通过CC11 创建物料版本

通过本文,我们了解了 SAP 的[SAP_MM模块通过CC11 创建物料版本]的基本概念和应用方法。当物料主数据、BOM(物料清单)、工艺路线等对象需要进行变更控制时,通过创建“版本”或“更改单”来记录、控制和追溯变更。创建完变更主记录(Change Number)后,可在物料主数据维护时引用它,从而创建物料版本化信息。,在其中可以定义物料、BOM、工艺路线等对象的变更版本信息,从而在系统中实现版本化的物料管理。

我小时候很黑的博客 814

WordPress 站点地图 sitemap.xml 404 或空白:先核 SEO 插件与固定链接,再查 CDN 与防火墙

WordPress 前台正常,但打开(或 SEO 插件给出的站点地图地址)却——这和昨日写过的 Cloudflare Flexible SSL /、以及近期的 Heartbeat / autoload、Woo 结账空白、memory exhausted、固定链接「全站伪静态 404」、WP-Cron、Redis、REST 401、媒体上传失败。这里首页、文章页往往都能打开,卡在:SEO 插件未真正启用或互斥、物理挡路、固定链接 rewrite 未刷新、CDN/WAF 对.xml拦截,或robots.txt。

20年技术经验|专注小程序+外贸独立站|已服务500家企业,分享创业中有趣的产品和技术经验。 302

【深度学习新浪潮】近三年垂域大模型研究与产品进展全景洞察(2022-2025)

近三年来,垂域大模型完成了从技术探索到产业落地的关键跨越,在多个行业实现效率提升与价值创造。面对数据治理、技术适配、生态建设等挑战,未来需要通过技术创新、标准制定、人才培养等多维度发力,推动垂域大模型向更高效、更可靠、更普惠的方向发展。随着"人工智能+"行动的深入推进,垂域大模型将成为数字经济与实体经济深度融合的核心驱动力,为产业智能化升级注入持续动能。

专注:太空算力、AI infra、异构调度、大模型成本工程 786
上一篇: 最高经典背景音乐
下一篇: 一步一步学Linq to sql(五):存储过程
Octavius
博客等级 码龄22年 25粉丝 27原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值