SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table events ( id serial primary key, event_time tstzrange, -- дата и время начала и конца constraint no_screening_time_overlap exclude using gist ( event_time WITH && -- проверка на пересечение ) ); insert into events (event_time) values ('["2023-01-01 19:00:00", "2023-01-01 20:45:00"]');

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear