SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE my_table ( id INT UNSIGNED AUTO_INCREMENT, type INT NOT NULL, PRIMARY KEY (id) ); CREATE INDEX my_idx ON my_table (type); -- CREATE VIEW my_view AS (SELECT type from my_table UNION ALL SELECT type from my_table); INSERT INTO my_table (type) VALUES (1), (1), (1), (2), (2), (3);

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear