2023-10-11 17:15:06 +08:00
|
|
|
DROP CATALOG cat;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
SELECT * FROM cat. ;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-06-09 11:22:53 +08:00
|
|
|
CREATE TABLE cat.db ;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
SHOW TABLES FROM cat;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
ALTER DATABASE cat.;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
DROP VIEW v;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
SELECT * FROM ;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
CREATE VIEW cv;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
SELECT name, calculate_age(birthdate) AS age FROM students;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
CREATE FUNCTION fnc;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
SHOW COLUMNS FROM vie;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
2023-10-11 17:15:06 +08:00
|
|
|
SHOW CREATE TABLE tb1;
|
2023-06-09 11:22:53 +08:00
|
|
|
|
2023-11-28 21:18:44 +08:00
|
|
|
SHOW CREATE VIEW v1;
|
|
|
|
|
|
|
|
SELECT col ;
|
|
|
|
|
|
|
|
SELECT col FROM tb1;
|
|
|
|
|
|
|
|
SELECT col, FROM tb1;
|
|
|
|
|
|
|
|
SELECT * FROM tb ORDER BY ;
|
|
|
|
|
2024-03-26 14:28:27 +08:00
|
|
|
SELECT * FROM tb GROUP BY ;
|
2023-11-28 21:18:44 +08:00
|
|
|
|
|
|
|
INSERT INTO tb (col, tb.c );
|
|
|
|
|
|
|
|
CREATE TABLE yourTable (ts TIMESTAMP(3), WATERMARK FOR );
|
|
|
|
|
|
|
|
CREATE TABLE newTable ( );
|