-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> I'm looking for the fastest way to fetch a single record from a table.
> I don't care what record it is.
 
That's a strange request. If you really don't care what comes back, you
don't even need to query a table:
 
SELECT 1;
 
If you perhaps want the column names, query the system tables.
 
Otherwise the LIMIT 1 should be very fast, especially if you have no
ordering. Avoid the "SELECT *" if you don't need all the columns
for a little more speed.
 
- --
Greg Sabino Mullane [EMAIL PROTECTED]
PGP Key: 0x14964AC8 200312091943
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQE/1mynvJuQZxSWSsgRAk0HAKDKTHglcodYw2G9j5Il60e96Vv/xwCfcZ6p
ffIBwsqFtqW0UABYttqzT3U=
=JV2a
-----END PGP SIGNATURE-----



---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply via email to