bonsoir
je veux faire une recherche basé sure 4 critere j'ai ecrit cette requete
SqlCommand cmd = new SqlCommand(string.Format("select *from stagiaires where ( NUMS='{0}')or( Noms='{1}')or( Prenom='{2}')or( Tel='{3}')",text_Numero.Text,text_Nom.Text,text_Prenom.Text,text_Tel.Text));
ca marche pas je pense que je doit ajouter plus de conditions veuillez m'aider ?
Partager