Skip to content

Conditional functions

IF, IFNULL and ISNULL. Match each branch’s type as well as the condition type.

IF, IFNULL and ISNULL. Match each branch’s type as well as the condition type.

if

SignaturePurposeSource definition
mysql.if(bigint, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(condition bigint, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(date, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition

ifnull

SignaturePurposeSource definition
mysql.ifnull(bigint, bigint) → bigintReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(bigint, character varying) → character varyingReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(boolean, boolean) → booleanReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(bytea, bytea) → byteaReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character varying, bigint) → character varyingReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character varying, character varying) → character varyingReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character varying, character) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(character varying, text) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(character, character varying) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(character, character) → characterReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character, text) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(date, date) → dateReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(double precision, double precision) → double precisionReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(integer, integer) → integerReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(mysql."smallint", mysql."smallint") → mysql."smallint"Return the first value when present, otherwise the fallback.SQL
mysql.ifnull(mysql.double, mysql.double) → mysql.doubleReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(mysql.tinyint, mysql.tinyint) → mysql.tinyintReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(numeric, numeric) → numericReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 bigint, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 boolean, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 date, p2 text) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 integer, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 mysql."smallint", p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 numeric, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 time without time zone, p2 text) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 timestamp with time zone, p2 text) → timestamp with time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 timestamp without time zone, p2 text) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(text, bigint) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(text, character varying) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(text, character) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(text, text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(time without time zone, time without time zone) → time without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(timestamp without time zone, timestamp without time zone) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL

isnull

SignaturePurposeSource definition
mysql."isnull"(bigint) → integerTest whether the value is NULL.SQL
mysql."isnull"(boolean) → booleanTest whether the value is NULL.SQL
mysql."isnull"(mysql."real") → integerTest whether the value is NULL.SQL
mysql."isnull"(mysql."smallint") → integerTest whether the value is NULL.SQL
mysql."isnull"(smallint) → booleanTest whether the value is NULL.SQL
mysql."isnull"(val character varying) → integerTest whether the value is NULL.SQL
mysql."isnull"(val character) → integerTest whether the value is NULL.SQL
mysql."isnull"(val date) → integerTest whether the value is NULL.SQL
mysql."isnull"(val integer) → integerTest whether the value is NULL.SQL
mysql."isnull"(val json) → integerTest whether the value is NULL.SQL
mysql."isnull"(val numeric) → integerTest whether the value is NULL.SQL
mysql."isnull"(val text) → integerTest whether the value is NULL.SQL
mysql."isnull"(val time without time zone) → integerTest whether the value is NULL.SQL
mysql."isnull"(val timestamp without time zone) → integerTest whether the value is NULL.SQL