CREATE FUNCTION get_numero_commande ()
 RETURNS bigint
 LANGUAGE SQL
AS $function$
 UPDATE numeros_sequence
    SET numero_sequence = numero_sequence + 1
  WHERE type_sequence = 'commande'
 RETURNING numero_sequence;
$function$;
