Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 1. Sort by ID if you want to see things by insert order and are using serial/autoincrement for the PK.

Most RDBMSes (possibly all of the big ones?) do this by default if you opt for no ORDER BY clause, however that IS then depending on undefined behavior which is bad.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: