Re: Query performance problem

Поиск
Список
Период
Сортировка
От PFC
Тема Re: Query performance problem
Дата
Msg-id op.snts28pfth1vuj@localhost
обсуждение исходный текст
Ответ на Re: Query performance problem  (Ragnar Hafstað <gnari@simnet.is>)
Список pgsql-sql
> DEFAULT applies to INSERTs, NOT NULL applies to UPDATEs too.
In MySQL it applies to both (ie. if you UPDATE to an invalid value, it  
sets it to 'something').
NOT NULL without default is useful when you want to be sure you'll never  
forget to put a value in that column, when there is no meaningful default.  
Also for foreign keys : what would be the default value of a foreign key ?

>
> gnari
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>




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

Предыдущее
От: Ragnar Hafstað
Дата:
Сообщение: Re: Query performance problem
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Query performance problem