Re: Am I crazy or is this SQL not possible
| От | Aaron Bono |
|---|---|
| Тема | Re: Am I crazy or is this SQL not possible |
| Дата | |
| Msg-id | bf05e51c0606011230n3abf90e3h81781e0ab0451693@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Am I crazy or is this SQL not possible (Yasir Malik <ymalik@cs.stevens.edu>) |
| Ответы |
Re: Am I crazy or is this SQL not possible
|
| Список | pgsql-sql |
It is a hack, but when someone wants you to do something in a way different from the norm, aren't they asking for a hack? SQL Server does something like select top (1) from .... I am thinking this is NOT a SQL-99 standard. -Aaron On 6/1/06, Yasir Malik <ymalik@cs.stevens.edu> wrote: > > select max(date_sent) from table; > > would equal > > select date_sent from broadcast_history order by date_sent DESC limit 1; > > > That sounds like a hack. Is limit a SQL-99 standard? Is there are > another way to do this? > Sorry to take over your topic, Collin. > > Thanks, > Yasir
В списке pgsql-sql по дате отправления: