Bonjour les spécialistes MySQL!
Je cherche a faire un trigger qui refuse les enregistrements si
->si la SESSION existe déjà et que tous les autres champs sont identiques
pour l'instant j'ai ce code
MON ERREUR MySQL:
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MySQL a réponduocumentation
#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 '-1001;
DECLARE SESSION_OUI INTEGER;
DECLARE EXIT HANDLER FOR ERR_PERSO SET @' at line 9
Voici la structure de ma table
Champs type
x int(6)
y char(19)
z int(6)
a char(19)
b char(8)
c tinyint(1)
SESSION varchar(256)
Si quelqu'un à une idée pour m'aider !!
Merci beaucoup.


 

 
		
		 
        

 
			
			

 
   


 MYSQL 5.02 trigger
 MYSQL 5.02 trigger
				 Répondre avec citation
  Répondre avec citation
Partager