Sql server 从Oracle到SQL Server的转换
使用XML,所讨论的代码段如下所示: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
<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()