Created
June 6, 2012 13:20
-
-
Save MiLk/2881817 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION SIREN(id_e integer) RETURNS varchar | |
| LANGUAGE SQL | |
| AS ' | |
| DECLARE | |
| SIREN varchar; | |
| BEGIN | |
| SELECT SUBSTR(e.siret,1,9) INTO SIREN | |
| FROM enterprise e | |
| WHERE id=id_e; | |
| RETURN SIREN; | |
| END;' ; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ERREUR: erreur de syntaxe sur ou près de « varchar »
LINE 5: SIREN varchar;