CREATE FUNCTION uspGetPubStatsDMF(pcode TEXT) RETURNS TEXT AS $$ BEGIN IF pcode NOT IN SELECT publishercode FROM publisher THEN RAISE NOTICE 'Publisher code % does not exist.', pcode; END IF; END $$ LANGUAGE 'plpgsql';
This is what the function looks like so far, but every time I try to execute in PGAdmin, I just get error messages and the following hint
ERROR: function uspgetpubstatsdmf(unknown) does not exist
LINE 1: SELECT uspGetPubStatsDMF('AH')
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
What seems wrong with my code?

New Topic/Question
Reply




MultiQuote



|