aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create')
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create11
1 files changed, 11 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create
new file mode 100644
index 0000000..2d0ed21
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/sql-mode/create
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
+# name: create table ...
+# --
+CREATE TABLE [${1:dbo}].[${2:TableName}]
+(
+ ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL}
+$0
+ CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
+)
+GO