XML有关键字无法识别怎么办?

比如XML会视< 或 >为标记的开始结束&#xff0c;这时候就需要用<![CDATA[ xxxxxx ]]> 把你需要写入的结点内容括起来&#xff0c;如下 <select id"

比如XML会视< 或 >为标记的开始结束,这时候就需要用<![CDATA[ xxxxxx ]]> 把你需要写入的结点内容括起来,如下

    <select id="PickUpCalUnit_LNGJTM" parameterClass="Hashtable">
      <![CDATA[
     SELECT  b.CalculatorUnitID ,
            b.BackupYear ,
            a.UnitID ,
            a.UnitName ,
            a.GeoID ,
            c.WorkID,
            c.CLLevelID
    FROM    dbo.T_Unit a
            INNER JOIN t_calculatorunit b ON a.unitid = b.unitid
            INNER JOIN T_LatestResult c ON a.UnitID = c.UnitID
    WHERE   a.UnitID IN (
            SELECT  UnitID
            FROM    T_LatestResult
            WHERE   WorkID = ( SELECT   MAX(a.WorkID) AS WorkID
                               FROM     T_LatestResult a
                                        JOIN T_Work b ON a.WorkID = b.WorkID
                                        JOIN DM_WorkStutas c ON b.StandardID = c.StandardID
                                                              AND b.WorkStutasID = c.WorkStutasID
                               WHERE    a.CLLevelID = 1
                                        AND b.StandardID = 1
                                        AND DATEPART(year, b.WorkYear) < $Year$
                             ) )
            AND c.WorkID = ( SELECT MAX(a.WorkID) AS WorkID
                             FROM   T_LatestResult a
                                    JOIN T_Work b ON a.WorkID = b.WorkID
                                    JOIN DM_WorkStutas c ON b.StandardID = c.StandardID
                                                            AND b.WorkStutasID = c.WorkStutasID
                             WHERE  a.CLLevelID = 1
                                    AND b.StandardID = 1
                                    AND DATEPART(year, b.WorkYear) < $Year$
                           ) 
      ]]>
    </select>


发布者:admin,转转请注明出处:http://www.yc00.com/web/1743864059a4520234.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信