Firebird Null Guide Russian. else ...поле Job изменилось... NULL в СУБД Firebird 12 Замещение NULL значением Функция COALESCE В Firebird 1.5 есть функция, которая может конвертировать NULL во что-то еще. Это позволит вам конструкции «if (MyExpression is null) then». Функция называется COALESCE, и вы можете вызвать ее так: COALESCE(Expr1, Expr2, Expr3, ...) COALESCE возвращает первое не-NULL выражение из списка аргументов. Если полное имя человека с помощью COALESCE из первого, среднего и последнего имени, предполагая, что среднее имя может иметь значение NULL: select FirstName || coalesce(' ' || MiddleName, '')0 码力 | 15 页 | 288.08 KB | 1 年前3
Firebird 2.5 LangRef Update RussianBIN_XOR() BIT_LENGTH() CAST() CEIL(), CEILING() CHAR_LENGTH(), CHARACTER_LENGTH() CHAR_TO_UUID() COALESCE() COS() COSH() COT() DATEADD() DATEDIFF() DECODE() EXP() EXTRACT() MILLISECOND WEEK FLOOR() BACKUP BIN_AND BIN_OR BIN_NOT BIN_SHL BIN_SHR BIN_XOR BLOCK BREAK CALLER CEIL CEILING CHAR_TO_UUID COALESCE 19 Руководство по языку SQL COLLATION COMMENT COMMON COS COSH COT DATA DATEADD DATEDIFF DECODE RDB$TYPES T ON R.RDB$RELATION_TYPE = T.RDB$TYPE WHERE T.RDB$FIELD_NAME = 'RDB$RELATION_TYPE' AND COALESCE (R.RDB$SYSTEM_FLAG, 0) = 0 ORDER BY 2, 1 GENERATED ALWAYS AS Добавлено: 2.1 Описание: Вместо0 码力 | 364 页 | 1.45 MB | 1 年前3
Firebird Null Guide Spanishigual... else ...El campo Trabajo ha cambiado... Substituyendo NULL por un valor La función COALESCE Firebird 1.5 tiene una función que puede convertir NULL a casi cualquier otra cosa. Esto te habilita trucción “if (MiExpresion is null) then”. La función se llama COALESCE y la puedes llamar así: COALESCE(Expr1, Expr2, Expr3, ...) COALESCE devuelve el primer valor no-NULL de la lista de argumentos. Si Si todas las expresiones son NULL, devuelve NULL. Así es como puedes usar COALESCE para construir el nombre completo de una persona desde el nombre, segundo nombre y primer apellido, asumiendo que algunos0 码力 | 14 页 | 83.20 KB | 1 年前3
Firebird Null Guide Frenchest resté le même... else ...le champ Job a changé... Substituer une valeur à NULL La fonction COALESCE Il existe une fonction dans Firebird 1.5 qui convertit NULL en quasiment tout ce que l'on veut « if (MyExpression is null) then ». Cette fonction s'appelle COALESCE et s'utilise comme suit : COALESCE(Expr1, Expr2, Expr3, ...) COALESCE retourne la première expression non-NULL dans la liste d'arguments Voici comment utiliser COALESCE pour écrire le nom complet d'une personne avec ses prénom, surnom et nom, en supposant que certains surnoms sont NULL: select Prenom || coalesce(' ' || Surnom, '')0 码力 | 14 页 | 84.35 KB | 1 年前3
Firebird Null Guide: NULL behaviour and pitfalls in Firebird SQL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 14.1.1. The COALESCE function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 14. Converting to and from NULL 14.1. Substituting NULL with a value 14.1.1. The COALESCE function The COALESCE function in Firebird 1.5 and higher can convert NULL to most anything else. This enables (MyExpression is null) then” or similar constructions. The function signature is: COALESCE( Expr1, Expr2, Expr3, … ) COALESCE returns the value of the first non-NULL expression in the argument list. If all0 码力 | 69 页 | 479.63 KB | 1 年前3
firebird language reference 30 rus.......................................................................................... 453 COALESCE ............................................................................................... например DATE '25.12.2016' Условные выражения Выражение CASE и встроенные функции COALESCE, NULLIF. Круглые скобки Пара скобок ( ... ) используются для группировки выражений. Операции внутри rdb$types t ON r.rdb$relation_type = t.rdb$type WHERE t.rdb$field_name = 'RDB$RELATION_TYPE' AND coalesce (r.rdb$system_flag, 0) = 0 Поле RDB$TYPE_NAME0 码力 | 719 页 | 3.98 MB | 1 年前3
Firebird 2.5 Language Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360 8.9.1. COALESCE() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . rdb$types t on r.rdb$relation_type = t.rdb$type where t.rdb$field_name = 'RDB$RELATION_TYPE' and coalesce (r.rdb$system_flag, 0) = 0 The RDB$TYPE_NAME field will show PERSISTENT for a regular table, VIEW (GENERATOR) 8.9. Conditional Functions 8.9.1. COALESCE() Available in DSQL, PSQL Syntax COALESCE (, [, ... ]) Table 156. COALESCE Function Parameters Parameter Description exp1 0 码力 | 521 页 | 2.30 MB | 1 年前3
firebird 40 language reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 8.9.1. COALESCE() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . rdb$types t on r.rdb$relation_type = t.rdb$type where t.rdb$field_name = 'RDB$RELATION_TYPE' and coalesce (r.rdb$system_flag, 0) = 0 The RDB$TYPE_NAME field will show PERSISTENT for a regular table, VIEW B INDEX (RDB$2)) The fact is, the unspecified column in this case is implicitly replaced by `COALESCE(a.x, b.x). This clever trick is used to disambiguate column names, but it also interferes with0 码力 | 778 页 | 3.43 MB | 1 年前3
firebird 30 sprachreferenz. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452 8.9.1. COALESCE() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . rdb$types t on r.rdb$relation_type = t.rdb$type where t.rdb$field_name = 'RDB$RELATION_TYPE' and coalesce (r.rdb$system_flag, 0) = 0 Das Feld RDB$TYPE_NAME zeigt PERSISTENT für eine reguläre Tabelle, VIEW INDEX (RDB$2)) Tatsache ist, dass die nicht spezifizierte Spalte in diesem Fall implizit durch `COALESCE(a.x, b.x) ersetzt wird. Dieser clevere Trick wird verwendet, um Spaltennamen eindeutig zu machen0 码力 | 701 页 | 3.12 MB | 1 年前3
Firebird Docwriting Guide German2005PV 2005Added information on COALESCE Corrected some spelling errors PV Added information on COALESCE Corrected some spelling errors 0 码力 | 49 页 | 228.41 KB | 1 年前3
共 10 条
- 1













