【发布时间】:2014-06-01 12:53:19
【问题描述】:
我正在开发一个需要使用以下查询的 android 应用程序,
SELECT distinct AttributeValue.AttributeValueName as InventoryId
,WorkFlowTransaction.WorkFlowTransId
,Client.ClientName
,Project.ProjectName
,Product.ProductName
FROM WorkFlowTransaction
JOIN AttributeValue
ON WorkFlowTransaction.WorkflowTransId = AttributeValue.WorkflowTransId
JOIN Attribute
on Attribute.AttributeId = AttributeValue.AttributeId
JOIN Product
on Product.ProductId = WorkFlowTransaction.ProductId
JOIN Client
ON Client.ClientID=WorkFlowTransaction.ClientId
JOIN Project
on Project.ProjectID=WorkFlowTransaction.ProjectId
where AttributeValue.AttributeValueName
COLLATE SQL_Latin1_General_CP1_CI_AS not in (
Select LocationId
from BarcodeDetails
)
and Attribute.AttributeName = 'Inventory Id'
and WorkFlowTransaction.ClientId = 2
and WorkFlowTransaction.ProjectId = '44'
and WorkFlowTransaction.ProductId = '47'
and Attribute.IsDeleted ='0'
and AttributeValue.IsDeleted ='0'
and WorkFlowTransaction.IsDeleted = '0'
此查询在 SQL-Server 中运行良好。但在 android 中引发了 no such collation sequence: SQL_Latin1_General_CP1_CI_AS 异常。
请帮助我给出您的想法或解决方案。
【问题讨论】:
-
你期待什么?它是 mssql(不是 sqlite)特定的排序规则。
-
我想要一个在android中运行的同等产品
-
你为什么需要它?
标签: java android sql-server sqlite