j'essaie en vain d'ajouter cette fonction via phpMyAdmin..
il me met ce message d'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4MySQL a répondu: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INT' at line 8
n'étant pas un roi en SQL, si quelqu'un pouvait m'aider.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 -- -- DELIMITER ; -- -- Fonctions -- CREATE DEFINER=`root`@`%` FUNCTION `validation_CircuitPluginSpe`( input TEXT, delimiter VARCHAR(10), valeur varchar(255) ) RETURNS int(11) SQL SECURITY INVOKER BEGIN DECLARE retour INT; call split_string(input,delimiter); SELECT COUNT(*) INTO retour FROM SplitValues where valeur in (select * from SplitValues); return retour; END
Merci
Partager