Annotation: core.get_country_id_by_country_code

CREATE OR REPLACE FUNCTION core.get_country_id_by_country_code(character varying)
RETURNS integer

Information: core.get_country_id_by_country_code

Schema core
Function Name get_country_id_by_country_code
Arguments character varying
Owner postgres
Result Type integer
Description

Implementation: core.get_country_id_by_country_code

CREATE OR REPLACE FUNCTION core.get_country_id_by_country_code(character varying)
 RETURNS integer
 LANGUAGE plpgsql
 STABLE
AS $function$
BEGIN
    RETURN country_id
    FROM core.countries
    WHERE country_code = $1;
END
$function$