Search the MySQL manual:
MySQL Manual

Buy this Reference Manual in softcover from Barnes & Noble!

/ / Up / Table of Contents

6.2.2.4 Тип данных YEAR

Тип YEAR - это однобайтный тип данных для представления значений года.

MySQL извлекает и выводит величины YEAR в формате YYYY. Диапазон возможных значений - от 1901 до 2155.

Величины типа YEAR могут быть заданы в различных форматах:

Недопустимые величины YEAR преобразуются в 0000.

User Comments

Posted by [name withheld] on Monday August 12 2002, @7:53am [Delete] [Edit]

Since there doesn't seem to be a date type for
representing historic dates (eg. 2300 BC, or 129
CE), how would I achieve this using the existing date
type? Or is there something I'm missing?

Posted by on Tuesday December 3 2002, @4:18pm [Delete] [Edit]

When trying to insert ╢historical╢ values try using
a smallint (5) signed. this will give you values in the
range of -9999 to 99999

Add your own comment.

Top / / / Up / Table of Contents