我尝试在SQLite中执行此查询:
SELECT *
FROM customers
WHERE rating = ANY
(SELECT rating
FROM customers
WHERE city = 'Rome');
但是收到了这个错误:
Query Error: near "SELECT": syntax error Unable to execute statement
如果我更换
rating = ANY
到rating IN
,一切正常。
有人能告诉我 ANY 语句在SQLite中是如何工作的以及我做错了什么?
答案 0 :(得分:5)
AFAIK,SQLite没有 Event(() => OrderCreated,
x =>
{
x.CorrelateBy(order => order.OrderCode, ctx => ctx.Message.OrderCode);
x.InsertOnInitial = true;
x.SetSagaFactory(context => new OrderState
{
CorrelationId = NewId.NextGuid(),
OrderCode = context.Message.OrderCode
});
x.SelectId(context => NewId.NextGuid());
});
运算符。但是,您可以使用ANY
运算符来获取所需的功能:
IN
答案 1 :(得分:-1)
嗯,SQLite中没有setlocal
个关键字,因此它无法正常工作。