Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 从Oracle到SQL Server的转换_Sql Server_Xml_Oracle - Fatal编程技术网

Sql server 从Oracle到SQL Server的转换

Sql server 从Oracle到SQL Server的转换,sql-server,xml,oracle,Sql Server,Xml,Oracle,使用XML,所讨论的代码段如下所示: <field name="case" when max(b.expected_date) %lt% current_date then %q%0000-00-00%q% else to_char(max(b.expected_date), %q%YYYY-MM-DD%q%) end" title="QoO Expected" type="Date" /> 我收到的错误是: “b.potduedate.”附近的语法不正确,SQL状态3700

使用XML,所讨论的代码段如下所示:

<field  name="case"
when max(b.expected_date) %lt% current_date then %q%0000-00-00%q%
else to_char(max(b.expected_date), %q%YYYY-MM-DD%q%)
end"
title="QoO Expected"
type="Date" />

我收到的错误是:

“b.potduedate.”附近的语法不正确,SQL状态37000


getdate是Oracle中的一个函数,因此您可能需要添加()以使其正常工作

getdate()
getdate()