РЖ
alter table Defalut SET DEFAULT value
alter table Defalut SET NOT NULL
Нет ли тут избыточности?
По мне просто вторая строка оверхэд.
Size: a a a
РЖ
Y
YS
РЖ
4
Y
РЖ
test=# create table test ( some_data varchar default 'hehehe' );
CREATE TABLE
test=# insert into test default values;
INSERT 0 1
test=# insert into test values ( 'gygygy' );
INSERT 0 1
test=# select * from test;
some_data
-----------
hehehe
gygygy
(2 rows)
test=# insert into test values ( NULL );
INSERT 0 1
test=# select * from test;
some_data
-----------
hehehe
gygygy
(3 rows)
test=#
РЖ
test=# alter table test alter column some_data set not null;
ERROR: column "some_data" contains null values
test=# delete from test where some_data is null;
DELETE 1
test=# alter table test alter column some_data set not null;
ALTER TABLE
test=# insert into test values ( NULL );
ERROR: null value in column "some_data" violates not-null constraint
DETAIL: Failing row contains (null).
test=#
4
test=# create table test ( some_data varchar default 'hehehe' );
CREATE TABLE
test=# insert into test default values;
INSERT 0 1
test=# insert into test values ( 'gygygy' );
INSERT 0 1
test=# select * from test;
some_data
-----------
hehehe
gygygy
(2 rows)
test=# insert into test values ( NULL );
INSERT 0 1
test=# select * from test;
some_data
-----------
hehehe
gygygy
(3 rows)
test=#
GB
2020-06-11 08:28:27
), вывод должен был быть eq: true, a и b при этом - выводиться в ТЗ соединения (а выводятся в ТЗ вставки)РЖ
GB
2020-06-11 08:28:27
), вывод должен был быть eq: true, a и b при этом - выводиться в ТЗ соединения (а выводятся в ТЗ вставки)4
РЖ
4
Т
YS
2020-06-11 08:28:27
), вывод должен был быть eq: true, a и b при этом - выводиться в ТЗ соединения (а выводятся в ТЗ вставки)timezone('Europe/Moscow', '2020-06-11 08:28:27'::timestamp AT time ZONE 'utc'),Работает так:
YS