Re: using dates in pgsql
| От | Ron Johnson |
|---|---|
| Тема | Re: using dates in pgsql |
| Дата | |
| Msg-id | 1062061562.25752.170.camel@haggis обсуждение исходный текст |
| Ответ на | Re: using dates in pgsql (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: using dates in pgsql
|
| Список | pgsql-novice |
On Wed, 2003-08-27 at 23:28, Tom Lane wrote: > JohnH <JohnH@atkgib.com.au> writes: > > But I want to use a variable in the WHERE option > > WHERE activedate < (current date less 188 days) > > You're going to be embarrassed... > > WHERE activedate < (CURRENT_DATE - 188) How does pg know that that's 188 days, and not months or years? -- ----------------------------------------------------------------- Ron Johnson, Jr. ron.l.johnson@cox.net Jefferson, LA USA "You ask us the same question every day, and we give you the same answer every day. Someday, we hope that you will believe us..." U.S. Secretary of Defense Donald Rumsfeld, to a reporter
В списке pgsql-novice по дате отправления: