*** pgsql/doc/src/sgml/syntax.sgml 2010/05/27 18:23:47 1.144 --- pgsql/doc/src/sgml/syntax.sgml 2010/05/30 18:10:40 1.145 *************** *** 1,4 **** ! SQL Syntax --- 1,4 ---- ! SQL Syntax *************** SELECT concat_lower_or_upper('Hello', 'W *** 2285,2294 **** ! In named notation, each argument's name is specified using the ! AS keyword. For example: ! SELECT concat_lower_or_upper('Hello' AS a, 'World' AS b); concat_lower_or_upper ----------------------- hello world --- 2285,2295 ---- ! In named notation, each argument's name is specified using ! := to separate it from the argument expression. ! For example: ! SELECT concat_lower_or_upper(a := 'Hello', b := 'World'); concat_lower_or_upper ----------------------- hello world *************** SELECT concat_lower_or_upper('Hello' AS *** 2299,2311 **** using named notation is that the arguments may be specified in any order, for example: ! SELECT concat_lower_or_upper('Hello' AS a, 'World' AS b, true AS uppercase); concat_lower_or_upper ----------------------- HELLO WORLD (1 row) ! SELECT concat_lower_or_upper('Hello' AS a, true AS uppercase, 'World' AS b); concat_lower_or_upper ----------------------- HELLO WORLD --- 2300,2312 ---- using named notation is that the arguments may be specified in any order, for example: ! SELECT concat_lower_or_upper(a := 'Hello', b := 'World', uppercase := true); concat_lower_or_upper ----------------------- HELLO WORLD (1 row) ! SELECT concat_lower_or_upper(a := 'Hello', uppercase := true, b := 'World'); concat_lower_or_upper ----------------------- HELLO WORLD *************** SELECT concat_lower_or_upper('Hello' AS *** 2327,2333 **** already mentioned, named arguments cannot precede positional arguments. For example: ! SELECT concat_lower_or_upper('Hello', 'World', true AS uppercase); concat_lower_or_upper ----------------------- HELLO WORLD --- 2328,2334 ---- already mentioned, named arguments cannot precede positional arguments. For example: ! SELECT concat_lower_or_upper('Hello', 'World', uppercase := true); concat_lower_or_upper ----------------------- HELLO WORLD