Re: [SQL] 'now - 4 hours ago' ?
От
Zsolt Varga
Тема
Re: [SQL] 'now - 4 hours ago' ?
Дата
Msg-id
Pine.LNX.3.96.980619080816.31358A-100000@lupus.agria.hu
Ответ на
'now - 4 hours ago' ? (Petter Reinholdtsen)
Список
Дерево обсуждения
'now - 4 hours ago' ? Petter Reinholdtsen <pere@hungry.com>
Re: [SQL] 'now - 4 hours ago' ? Zsolt Varga <redax@agria.hu>
On Thu, 18 Jun 1998, Petter Reinholdtsen wrote: | CREATE TABLE testdate( | received timestamp DEFAULT CURRENT_DATE, | info text NOT NULL | ); I think CURRENT_DATE will be parsed to the table creation's time. so better to use: CREATE TABLE testdate ( received timestamp DEFAULT timestamp(now()), info text NOT NULL ); Redax .----------------------------------------------------------. |Zsolt Varga | tel/fax: +36 36 422811 | | AgriaComputer LTD | email: redax@agria.hu | | System Administrator | URL: http://www.agria.hu/ | `----------------------------------------------------------'
В списке pgsql-sql по дате отправления