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_table ( a INT, b DATE INVISIBLE ) ENGINE = InnoDB; ALTER TABLE test_table ADD COLUMN c INT INVISIBLE; ALTER TABLE test_table CHANGE COLUMN b b DATE VISIBLE; ALTER TABLE test_table MODIFY COLUMN b DATE INVISIBLE; ALTER TABLE test_table ALTER COLUMN c SET VISIBLE; SHOW COLUMNS FROM test_table; SHOW CREATE TABLE test_table; INSERT INTO test_table VALUES (1, now(), 33); INSERT INTO test_table () VALUES (1, now(), 33); INSERT INTO test_table VALUES (1, 22); INSERT INTO test_table (a, b, c) VALUES (1, now(), 33); TABLE test_table; SELECT * FROM test_table; UPDATE test_table SET b = DATE_ADD(NOW(), INTERVAL 1 DAY) WHERE c = 22; SELECT a, b, c FROM test_table;

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

Copy Clear