Some questions
От | Vladimir Litovka |
---|---|
Тема | Some questions |
Дата | |
Msg-id | Pine.LNX.4.05.9811131934540.6359-100000@barnet.kharkov.ua обсуждение исходный текст |
Ответы |
abusing an aggregate funct
Re: [SQL] Some questions |
Список | pgsql-sql |
Hello! There is table of character types in manual, where the 'text' type suggested as the best choice. 'text' is variable length type and I think, that fixed length's types (such as char(n)) will be faster, than variable length's ones? Am I wrong? The second question is more complex :) It about CREATE TABLE statement. Is there difference between following statements? create table aaa (i int2 UNIQUE); and create table aaa (i int2, CONSTRAINT aaa_i_key UNIQUE(i)); First case uses 'column constraint' and second - 'table constraint'. Manual says: "A column constraint is an integrity constraint defined as part of a column definition, and logically becomes a table constraint as soon as it is created". Am I understand correctly - it is never mind where to define (any) constraints - all of them does the same? And last: what does it mean the following statement in the CREATE TABLE? ... len INTERVAL HOUR TO MINUTE ... Thank you :) --- Vladimir Litovka <doka@webest.com>
В списке pgsql-sql по дате отправления: