Smart to use LIMIT 1 when there's only 1 row?
| From: | Noah Spitzer-Williams | Date: | Fri, 01 Dec 2000 00:01:01 +0000 |
| Subject: | Smart to use LIMIT 1 when there's only 1 row? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4910@lists.php.net to get a copy of this message | ||
If you know an sql query is only going to return one row, is it smart to add LIMIT 1 to the query
anyway?
thanks! Noah
--------------------------------------------------------------------------------
The DevBoard - The Solution to Programmer's Block Noah Spitzer-Williams
Founder of the DevBoard
webmaster@thedevboard.com
http://www.thedevboard.com