J'ai une fonction postgresql
CREATE OR REPLACE FUNCTION fixMissingFiles() RETURNS VOID AS $$
DECLARE
deletedContactId integer;
BEGIN
SELECT INTO deletedContactId contact_id FROM myContacts WHERE id=206351;
-- print the value of deletedContactId variable to the console
END;
$$ LANGUAGE plpgsql;
Comment puis-je imprimer la valeur de deleteContactId sur la console?
Soulever un avis:
raise notice 'Value: %', deletedContactId;
http://www.postgresql.org/docs/current/static/plpgsql-errors-and-messages.html