Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
create table film_screenings ( id serial primary key, film int references films(id), -- фильм hall int references halls(id), -- кинозал screening_time tzrange, -- дата и время начала сеанса recomended_price numeric, -- рекомендованная цена билета constraint no_screening_time_overlap exclude using gist ( screening_time WITH && -- check for overlapping ranges ) );

Stuck with a problem? Got Error? Ask AI support!

Copy Clear