title: Why does the MySQL SLEEP() function return 0?
body: <p>When I run a sleep command in MySQL, e.g. <code>SELECT SLEEP(7)</code>, it returns zero. Why is this? Is it following the standard Unix convention of return values? Does it just need something to return and so zero is a good harmless value? Are there other MySQL functions that behave like this?</p>