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 test ( id serial, test_date timestamp ); insert into test (test_date) values ('1970-01-01'), ('1970-02-01'), ('1980-01-01'), ('1980-02-01'); select id, test_date from test where extract(month from test_date) = 1;

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

Copy Clear