On Fri, 27 Mar 2009 16:37:37 -0400, Thomas Briggs
<t...@briggs.cx> wrote:

>
>   Holy cow that feels inefficient.

Yes, it certainly is.

>   It's a bit clunky, but why not insert into a temporary table,
>ordered as desired, and then use the rowid from the temp table?

Yes, or solve it in the host language, which is what I would
do. Actually, OP's original:

sqlite3 db 'select * from foo order by field desc; '|cat -n

is pretty good.

Oh, well, there are 11 roads to Rome :)
-- 
  (  Kees Nuyt
  )
c[_]
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to