Annotation: office.get_store_id_by_store_code

CREATE OR REPLACE FUNCTION office.get_store_id_by_store_code(text)
RETURNS integer

Information: office.get_store_id_by_store_code

Schema office
Function Name get_store_id_by_store_code
Arguments text
Owner postgres
Result Type integer
Description

Implementation: office.get_store_id_by_store_code

CREATE OR REPLACE FUNCTION office.get_store_id_by_store_code(text)
 RETURNS integer
 LANGUAGE plpgsql
 STABLE
AS $function$
BEGIN
    RETURN
    (
        SELECT store_id
        FROM office.stores
        WHERE store_code=$1
    );
END
$function$