PostgreSQL PGCES-02 Exam - Topic 11 Question 38 Discussion
A table is defined as follows: CREATE TABLE t (id INT, val TEXT); Select two correct statements from below about the function "get_head" defined below. CREATEFUNCTION get_head(BOOLEAN) RETURNS TEXT LANGUAGE sql CALLED ONNULL INPUT AS 'SELECT val FROM t WHERE $1 OR id > 0 ORDER BY id LIMIT 1;';
A) This function is defined using PL/pgSQL. and D) Even if this function is passed the same parameter value and executed multiple times, the returned values will not necessarily also be the same value.
B) There are cases where this function returns multiple lines.
C) When NULL is passed for the argument and the function is executed, NULL is returned.
E) If a function with the same name and with type BOOLEAN as the parameter is already defined, an error occurs.
Keneth
8 months agoRikki
8 months agoLouvenia
9 months agoTasia
9 months agoNovella
9 months agoFreida
9 months agoMartha
9 months agoStefan
9 months agoRonna
9 months agoLaurene
9 months agoSalena
10 months agoHoward
1 year agoClarence
1 year agoHarris
1 year agoSharita
1 year agoDulce
1 year agoTamra
1 year agoLottie
1 year agoClorinda
1 year agoMickie
1 year agoMickie
1 year agoBlythe
1 year agoMickie
1 year agoNoah
1 year agoTruman
1 year agoAdolph
1 year agoAnika
1 year agoLucille
1 year agoAshleigh
1 year agoMollie
1 year agoGlendora
1 year agoTeri
1 year agoTeri
1 year agoVanesa
1 year agoNohemi
1 year ago