2023-10-24 14:37:27 +08:00
|
|
|
INSERT INTO db.tb ;
|
|
|
|
|
|
|
|
SELECT ids FROM db.;
|
|
|
|
|
|
|
|
CREATE TABLE db. VALUES;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS db.a;
|
|
|
|
|
|
|
|
CREATE OR REPLACE VIEW db.v;
|
|
|
|
|
|
|
|
DROP VIEW db.v ;
|
|
|
|
|
|
|
|
SELECT name, calculate_age(birthday) AS age FROM students;
|
|
|
|
|
|
|
|
CREATE SCHEMA db ;
|
|
|
|
|
|
|
|
DROP SCHEMA IF EXISTS sch;
|
|
|
|
|
2023-11-28 21:18:44 +08:00
|
|
|
SHOW COLUMNS FROM tb ;
|
|
|
|
|
|
|
|
COMMENT ON COLUMN tb.;
|
|
|
|
|
|
|
|
ALTER TABLE tb RENAME COLUMN ;
|
|
|
|
|
|
|
|
ALTER TABLE tb RENAME COLUMN ids TO ;
|
|
|
|
|
|
|
|
ALTER TABLE users DROP COLUMN ;
|
|
|
|
|
|
|
|
ALTER TABLE users ADD COLUMN zi ;
|
|
|
|
|
|
|
|
SHOW COMMENT ON COLUMN tb.c ;
|
|
|
|
|
|
|
|
INSERT INTO tb (id, );
|
|
|
|
|
|
|
|
SELECT * FROM tb ORDER BY ;
|
|
|
|
|
|
|
|
SELECT * FROM tb GROUP BY ;
|