-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathemmet.json
87 lines (87 loc) · 2.44 KB
/
emmet.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[
"-- symbols",
["()"], "( # )",
["("], "(",
[")"], ")",
[")a"], ") as #",
["*"], "*",
["<"], "# < #",
[">"], "# > #",
["<="], "# <= #",
[">="], "# >= #",
["<>"], "# <> #",
["!="], "# != #",
["="], "# = #",
[";"], ";\n",
[","], ", ",
"-- condition",
["w"], "where #",
["wi"], "where # in ( # )",
["wni"], "where # not in ( # )",
["ni"], "not in #",
["h"], "having #",
["hi"], "having # in ( # )",
["hni"], "having # not in ( # )",
["l"], "like #",
["b"], "between # and #",
"-- grouping",
["gb", "g"], "group by #",
"-- ordering",
["oba"], "order by # asc",
["obd"], "order by # desc",
["ob", "o"], "order by #",
"-- create",
["ctt"], "create temporary table # ( # )",
["ct"], "create table # ( # )",
["ctine"], "create table if not exist # ( # )",
["cta"], "create table # as",
["cd"], "create database #",
"-- drop",
["dt"], "drop table #",
["dd"], "drop database #",
"-- alter",
["atac"], "alter table # add column #",
["atdc"], "alter table # drop column #",
["atmc"], "alter table # modify column #",
["atr"], "alter table # rename #",
["rtt", "rt"], "rename table # to #",
["atacfkr", "atacfk", "atfk"], "alter table # add constraint # foreign key ( # ) references #",
["ouc"], "on update cascade",
["our"], "on update restrict",
["ousn"], "on update set null",
["odc"], "on delete cascade",
["odr"], "on delete restrict",
["odsn"], "on delete set null",
"-- lock",
["ltr"], "lock table # read",
["ltw"], "lock table # write",
["ut"], "unlock table #",
["uts"], "unlock tables",
"-- read",
["s"], "select",
["s*"], "select *",
["sf"], "select # from #",
["s*f"], "select * from #",
["sdf"], "select distinct # from #",
["f"], "from #",
["c()"], "count( # )",
"-- join",
["ljo", "lj"], "left join # on #",
["rjo", "rj"], "right join # on #",
["ijo", "ij"], "inner join # on #",
["jo", "j"], "join # on #",
["sct"], "show create table #",
["scv"], "show create view #",
"-- union",
["u"], "union",
["usf"], "union select # from #",
"-- update",
["ii"], "insert into #",
["v"], "values ( # )",
["va"], "values ( # ) as #",
["odku"], "on duplicate key update #",
["odk"], "on duplicate key",
"-- delete",
["df"], "delete from #",
["t"], "truncate #"
]