lava-oushudb-dt-sql-parser/test/parser/hive/suggestion/fixtures/syntaxSuggestion.sql

35 lines
585 B
MySQL
Raw Normal View History

INSERT INTO db.tb ;
SELECT * FROM db.;
CREATE TABLE db. VALUES;
DROP TABLE IF EXISTS db.a;
CREATE OR REPLACE VIEW db.v;
DROP VIEW db.v ;
CREATE FUNCTION fn1;
SELECT name, calculate_age(birthday) AS age FROM students;
CREATE DATABASE db;
DROP SCHEMA IF EXISTS sch;
SELECT co;
SELECT ;
INSERT INTO tb ( );
SELECT * FROM tb1 ORDER BY tb.c;
CREATE TABLE newtb ( id INT, n );
MERGE INTO tablename USING tablename2 ON (tablename.id = tablename2.id) WHEN MATCHED THEN UPDATE SET tablename.col ;
ALTER TABLE tbl CHANGE COLUMN ;
ALTER TABLE tbl CHANGE COLUMN tbl.oldcol new ;