LittleMahdy
LittleMahdy

Reputation: 59

SqLite error near OUTPUT

I try to Update my table and return IDs of updated rows. here is the command:

UPDATE messages SET status = 2 OUTPUT inserted.ID WHERE status=1 and sender!=@person

But I get sqlite error for my OUTPUT clause. I use version 3 (the mono version for mobile)

Upvotes: 3

Views: 1207

Answers (1)

CL.
CL.

Reputation: 180300

In SQLite, the UPDATE statement has no OUTPUT clause.

In an embedded database, there is no client/server communication overhead. Just get the IDs with a SELECT.

Upvotes: 2

Related Questions