Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.4.0
-
None
-
Reviewed
Description
ELT(N,str1,str2,str3,...)
Returns str1 if N = 1, str2 if N = 2, and so on. Returns NULL if N is less than 1 or greater than the number of arguments. ELT() is the complement of FIELD().
mysql> SELECT ELT(1, 'ej', 'Heja', 'hej', 'foo'); -> 'ej' mysql> SELECT ELT(4, 'ej', 'Heja', 'hej', 'foo'); -> 'foo'
Attachments
Attachments
Issue Links
- is part of
-
HIVE-615 new user functions needed for HIVE
- Open