bonjour,
en fait, j'ai un problème dans le script de création d'un compte pour un utilisateur pour pouvoir se connecter
voilà le codele problème que ça m'insére le compte même si le login existe déjà ,alors qu'il faut créér ce compte que si le login tapé n'existe pas déjà dans la tables
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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 declare a number; b number; cursor cc1 is select compte_candidat.login_candidat from compte_candidat ; c_login compte_candidat.login_candidat%type; begin select max(id_compte_candidat) into b from compte_candidat; if (:compte_candidat.login_candidat is null) or (:compte_candidat.mot_de_passe_cadidat is null) then a:=show_alert('champ_manquant');end if open cc1; loop fetch cc1 into c_login; if cc1%found then if(c_login = :compte_candidat.login_candidat) then a:=show_alert('login_existant'); end if; end if; end loop; close cc1; insert into compte_candidat(id_compte_candidat,login_candidat,mot_de_passe_cadidat) values(b+1,:compte_candidat.login_candidat ,:compte_candidat.mot_de_passe_cadidat); standard.commit; :compte_candidat.login_candidat :=''; :compte_candidat.mot_de_passe_cadidat:=''; call_form('C:\Documents and Settings\Administrator\Desktop\sysinfo\AJOUT_CANDIDATURE'); end;
je pense qu'il ya une erreur dans mon script mais j'ai pas pu la détecter
svp ,aidez moi
Partager