Improved sql snippets.
This commit is contained in:
parent
2d212e12f5
commit
39cd6d1f28
@ -6,6 +6,11 @@ options head
|
|||||||
);
|
);
|
||||||
DROP TABLE $1;
|
DROP TABLE $1;
|
||||||
|
|
||||||
|
snippet CREATE INDEX
|
||||||
|
abbr CREATE INDEX ... ON ... ( ... )
|
||||||
|
options head
|
||||||
|
CREATE INDEX ${1:_name} ON ${2:cities} (${3:name});
|
||||||
|
|
||||||
snippet INSERT
|
snippet INSERT
|
||||||
abbr INSERT INTO ... VALUES ( ... )
|
abbr INSERT INTO ... VALUES ( ... )
|
||||||
options head
|
options head
|
||||||
@ -16,3 +21,10 @@ snippet SELECT
|
|||||||
abbr SELECT * from ...
|
abbr SELECT * from ...
|
||||||
options head
|
options head
|
||||||
SELECT ${1:*} FROM ${2:cities} ${0:WHERE name = 'Vancouver'};
|
SELECT ${1:*} FROM ${2:cities} ${0:WHERE name = 'Vancouver'};
|
||||||
|
|
||||||
|
snippet TRANSACTION
|
||||||
|
alias BEGIN TRANSACTION
|
||||||
|
options head
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
${0:TARGET}
|
||||||
|
COMMIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user