hello, if i were to setup a date or time type in my database, what would be a good default value to use (an empty one, but not null) thanks!
On Sun, 5 Mar 2000, Seth Banks wrote: > if i were to setup a date or time type in my database, what would be a > good default value to use (an empty one, but not null) The way you're asking you probably do want to use NULL because there's no such thing as an "empty date". NULL is supposed to fill exactly that gap. However, if for some reason you really can't use NULL then consider perhaps 'invalid' or '-infinity' but these are distinctly non-portable and might not buy you much in terms of elegance. Implementor beware. :) -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера