Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can
От | Joshua D. Drake |
---|---|
Тема | Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can |
Дата | |
Msg-id | 1165809878.19970.2.camel@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can helpe (Chris <dmagick@gmail.com>) |
Ответы |
Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can
|
Список | pgsql-performance |
On Mon, 2006-12-11 at 14:33 +1100, Chris wrote: > Marcos Borges wrote: > > 07/12/2006 04:31 > > *SQL_CALC_FOUND_ROWS in POSTGRESQL* > > > > In mysqln i m using the command SQL_CALC_FOUND_ROWS in follow sintax. > > SELECT SQL_CALC_FOUND_ROWS name, email, tel FROM mytable WHERE name <> > > '' LIMIT 0, 10 > > to have the recorset data. > > and > > SELECT FOUND_ROWS(); > > to have the total of registers found. > > > > I dont want to use the command count(*), because the performance will > > fall down, depending of the quantyt of tables and "joins". > > > > The Data base postgresql have something similar ??? > > Nope, you're out of luck sorry. That's a mysql-ism and I doubt postgres > will ever include something similar. Your language will have a similar binding. Something like pg_numrows. Sincerely, Joshua D. Drake > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
В списке pgsql-performance по дате отправления: