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 user_balance ( user_id int, balance decimal(9, 2) check (balance >=0) ); insert into user_balance values (1, 10); update user_balance set balance = balance - 100 where user_id = 1; create table user_balance_unsigned ( user_id int, balance decimal(9, 2) unsigned ); insert into user_balance_unsigned values (1, 10); update user_balance_unsigned set balance = balance - 100 where user_id = 1;

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

Copy Clear