Re: Fetch a single record
| От | greg@turnstep.com | 
|---|---|
| Тема | Re: Fetch a single record | 
| Дата | |
| Msg-id | e5b118baca8d81434e5616bfe8c0ddf1@biglumber.com обсуждение исходный текст | 
| Ответ на | Fetch a single record (david_shadovitz@xontech.com (David Shadovitz)) | 
| Список | pgsql-sql | 
-----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 greg@turnstep.com PGP Key: 0x14964AC8 200312091943 -----BEGIN PGP SIGNATURE----- iD8DBQE/1mynvJuQZxSWSsgRAk0HAKDKTHglcodYw2G9j5Il60e96Vv/xwCfcZ6p ffIBwsqFtqW0UABYttqzT3U= =JV2a -----END PGP SIGNATURE-----
В списке pgsql-sql по дате отправления: