Skip to content

Commit 024f304

Browse files
author
Yvon Vieville
committed
complete
1 parent 10d05ed commit 024f304

File tree

1 file changed

+68
-3
lines changed

1 file changed

+68
-3
lines changed

src/language/snippets/scalars.code-snippets

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@
608608
"body": "monthname(${1:expression})",
609609
"description": "Returns a mixed case character string containing the name of the month (for example, January) for the month portion of the argument."
610610
},
611-
"month_between": {
612-
"prefix": "month_between",
613-
"body": "month_between(${1:expression}, ${2:expression})",
611+
"months_between": {
612+
"prefix": "months_between",
613+
"body": "months_between(${1:expression}, ${2:expression})",
614614
"description": "The MONTHS_BETWEEN function returns an estimate of the number of months between expression1 and expression2."
615615
},
616616
"mqread": {
@@ -1157,5 +1157,70 @@
11571157
"prefix": "least",
11581158
"body": "least(${1:expression}, ${2:expression?+})",
11591159
"description": "The LEAST scalar function returns the minimum value in a set of values."
1160+
},
1161+
"nvl": {
1162+
"prefix": "nvl",
1163+
"body": "nvl(${1:expression}, ${2:expression+})",
1164+
"description": "The NVL function returns the value of the first non-null expression."
1165+
},
1166+
"pow": {
1167+
"prefix": "pow",
1168+
"body": "pow(${1:expression}, ${2:expression})",
1169+
"description": "The POWER or POW function returns the result of raising the first argument to the power of the second argument."
1170+
},
1171+
"random": {
1172+
"prefix": "random",
1173+
"body": "random(${1:expression})",
1174+
"description": "The RANDOM or RAND function returns a floating point value greater than or equal to 0 and less than or equal to 1."
1175+
},
1176+
"strleft": {
1177+
"prefix": "strleft",
1178+
"body": "strleft(${1:expression}, ${2:integer})",
1179+
"description": "The STRLEFT function returns the leftmost integer characters of expression."
1180+
},
1181+
"strpos": {
1182+
"prefix": "strpos",
1183+
"body": "strpos(${1:source-string}, ${2:search-string})",
1184+
"description": "The STRPOS function returns the starting position of the first occurrence of one string (called the search-string) within another string (called the source-string)."
1185+
},
1186+
"strright": {
1187+
"prefix": "strright",
1188+
"body": "strright(${1:expression}, ${2:integer})",
1189+
"description": "The STRRIGHT function returns the rightmost integer characters of expression."
1190+
},
1191+
"to_char": {
1192+
"prefix": "to_char",
1193+
"body": "to_char(${1:string/timestamp/numeric-expression}, ${2:format-string?}, ${3:scale?}, ${4:decimal-character})",
1194+
"description": "The TO_CHAR function returns a character string representation of the first argument in the format indicated by the optional format-string."
1195+
},
1196+
"to_clob": {
1197+
"prefix": "to_clob",
1198+
"body": "to_clob(${1:expression})",
1199+
"description": "The TO_CLOB function returns a character-string representation."
1200+
},
1201+
"to_date": {
1202+
"prefix": "to_date",
1203+
"body": "to_date(${1:string-expression}, ${2:format-string}, ${3:precision-constant?})",
1204+
"description": "The TO_DATE function returns a timestamp that is based on the interpretation of the input string using the specified format."
1205+
},
1206+
"to_number": {
1207+
"prefix": "to_number",
1208+
"body": "to_number(${1:string-expression}, ${2:format-string?})",
1209+
"description": "The TO_NUMBER function returns a DECFLOAT(34) value that is based on the interpretation of the input string using the specified format."
1210+
},
1211+
"to_timestamp": {
1212+
"prefix": "to_timestamp",
1213+
"body": "to_timestamp(${1:string-expression}, ${2:format-string}, ${3:precision-constant?})",
1214+
"description": "The TO_TIMESTAMP function returns a timestamp that is based on the interpretation of the input string using the specified format."
1215+
},
1216+
"url_decode": {
1217+
"prefix": "url_decode",
1218+
"body": "url_decode(${1:character-string})",
1219+
"description": "The URL_DECODE scalar function completes URL decoding of the provided text using UTF-8 encoding."
1220+
},
1221+
"url_encode": {
1222+
"prefix": "url_encode",
1223+
"body": "url_encode(${1:character-string})",
1224+
"description": "The URL_ENCODE scalar function completes URL encoding of the provided text using UTF-8 encoding."
11601225
}
11611226
}

0 commit comments

Comments
 (0)