SETOF nomTable
.SELECT
.RETURN NEXT
RETURN
clos la fonction.create FUNCTION selectTitres(varchar) RETURNS SETOF livre AS $$
DECLARE
ligne livre%ROWTYPE;
BEGIN
FOR ligne IN SELECT * FROM livre WHERE liv_titre like $1 LOOP
RETURN NEXT ligne;
END LOOP;
RETURN;
END;
$$ LANGUAGE plpgsql;
SELECT * FROM selectTitres('Les %') AS t1;