-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSQL_shortcuts.ahk
88 lines (72 loc) · 2.47 KB
/
SQL_shortcuts.ahk
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
88
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
:*:create ::CREATE{Space}
:*:alter ::ALTER{Space}
:*:drop ::DROP{Space}
:*:add ::ADD{Space}
:*:select ::SELECT{Space}
:*:from ::FROM{Space}
:*:concat(::CONCAT(
:*:insert into ::INSERT INTO{Space}
:*:values ::VALUES{Space}
:*:table ::TABLE{Space}
:*:column ::COLUMN{Space}
:*:primary key::PRIMARY KEY
:*:foreign key::FOREIGN KEY
:*:constraint::CONSTRAINT
:*:references::REFERENCES
:*:auto_increment::AUTO_INCREMENT
:*:auto increment::AUTO_INCREMENT
:*:join ::JOIN{Space}
:*:left ::LEFT{Space}
:*:right ::RIGHT{Space}
:*:inner ::INNER{Space}
:*:outer ::OUTER{Space}
:*:full ::FULL{Space}
:*:distinct ::DISTINCT{Space}
:*:exists ::EXISTS{Space}
:*:if ::IF{Space}
:*:as ::AS{Space}
:*:and ::AND{Space}
:*:or ::OR{Space}
:*:not ::NOT{Space}
:*:in ::IN{Space}
:*:like ::LIKE{Space}
:*:for ::FOR{Space}
:*:where ::WHERE{Space}
:*:between ::BETWEEN{Space}
:*:check ::CHECK{Space}
:*:order ::ORDER{Space}
:*:group ::GROUP{Space}
:*:by ::BY{Space}
:*:null ::NULL{Space}
:*:default ::DEFAULT{Space}
:*:vc::VARCHAR
:*:varchar::VARCHAR
:*:char::CHAR
:*:int ::INT{Space}
:*:smallint ::SMALLINT{Space}
:*:longint ::LONGINT{Space}
:*:date ::DATE{Space}
;aggregate functions
:*:avg(::AVG( ;'average' : AVG(table.attribute) returns the average of the tables attribute
:*:count(::COUNT( ;'count' : COUNT(table.attribute) number of times that attribute appears IN the table
:*:max(::MAX(
:*:min(::MIN(
:*:sum(::SUM(
:*:ucase(::UCASE( ;'upper case'
:*:lcase(::LCASE( ;'loser case'
:*:""::""{Left}
:*:''::''{Left}
:*:()::(){Left}
:*:{}::{}{Left}
!q::
;msgbox, exiting SQL_shortcuts.ahk
exitApp
return
:*:ahk_disable(sqlShortcuts)::
run E:\Documents\GitHub\AHK\SQL_shortcuts.ahk
return