2
I need to change a table field in my database to perform some tests, and would like to update only the last 100 table records. I’ve tried that code: UPDATE titulo SET autorizado='S' ORDER BY id_titulo DESC LIMIT 100;
But this code returns me an error in ORDER
I couldn’t figure out why. If anyone has any other alternative of how to do this and want to share I would appreciate if you can help me.
Tell me what the mistake is.
– Maniero
ERROR: syntax error on or near "ORDER" SQL state: 42601 Character: 34
– Bruno Duarte