Is it possible to update first row and with WHERE clause.
I Tried:
UPDATE TOP (1) Players SET... WHERE...
and:
UPDATE TOP 1 Players SET... WHERE
But It seems there is no TOP in sqlite.
Can I use some alternative?
Or am I doing anything wrong?
Try
UPDATE Players SET... WHERE... LIMIT 1
I can't verify right now, but maybe LIMIT only works with SELECTstatements. If so do this:
UPDATE Players SET... WHERE ID in (SELECT ID FROM Players WHERE ... LIMIT 1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With