Re: Date format errors

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Date format errors
Дата
Msg-id 20030426181808.GA10048@wolff.to
обсуждение исходный текст
Ответ на Date format errors  ("Craig Elston" <CElston@PICsolutions.com>)
Список pgsql-novice
On Wed, Apr 23, 2003 at 16:28:27 +0200,
  Craig Elston <CElston@PICsolutions.com> wrote:
>
> When trying to insert a date into a table using HTML Forms & PHP, PGAdminII,
> WINSql and even psql on the server I get the following error.
>
>     Query failed: ERROR: Bad date external representation
> The syntax I am using is bog simple.
>
>      INSERT INTO repairs VALUES
>     (nextval('repairs_id_seq'), '$date', '$username', '$item',
> '$serialnumber', '$fault', '$company', '$jobcard',     '$datereturned',
> '$comments')

What do the values of $date and $datereturned look like?
Note in particular that '' is not a valid date value. You need to use
NULL if you want a null value.


В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SELECT using RegEx inside a POSITION function
Следующее
От: nolan@celery.tssi.com
Дата:
Сообщение: Re: Date format errors