Skip to content
Discussion options

You must be logged in to vote

Hi @jaredh159, are you sure SQLite supports this? I get an error:

sqlite> insert into foos (id) values (1), (2) returning * order by id desc;
Parse error: near "order": syntax error
  insert into foos (id) values (1), (2) returning * order by id desc;
                                      error here ---^
sqlite> select sqlite_version();
3.43.2

And from the flow chart of RETURNING it does not seem like orders are possible:

I think rows are just returned in an unspecified order.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jaredh159
Comment options

Answer selected by jaredh159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants