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 integer, val1 integer, val2 integer, val3 integer, date ); insert into test values (1, 1, 2, 3, '14.12.2021'); select *, substr(date,7)||'-'||substr(date,4,2)||'-'||substr(date,1,2) from test where substr(date,7)||'-'||substr(date,4,2)||'-'||substr(date,1,2) between '2021-12-01' and '2022-01-31';

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

Copy Clear