【发布时间】:2017-02-07 05:45:19
【问题描述】:
//This is my xml file
<sql id="data8">select .......... and DATEDIFF(CURDATE(),modified_date) > 7 group by ......</sql>
//And i am accessing this in webmethod in aspx.cs page.
var doc = new XmlDocument();
doc.Load(Server.MapPath("XMLFile.xml"));
string cmdstr = doc.DocumentElement.SelectSingleNode("//queries/sql[@id='data8']").InnerXml;
但我收到错误“'where 子句'中的未知列 'gt'”。请帮忙
【问题讨论】: