je reçois une chaîne de charactères et je construis un requête comme ça:
Mais le COMPILER m'alerte toujous:
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10AnsiString str; int n; str = Edit1->Text; ADOCommand1->CommandText = ""; ADOCommand1->CommandText = "select * from CDS_Card_Data where ICCID = '"; ADOCommand1->CommandText += str; ADOCommand1->CommandText += "'"; Edit2->Text = ADOCommand1->CommandText; ADODataSet1->Recordset = ADOCommand1->Execute();
Pourquoi est-ce qu'il a causé cette erreur?
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
Si je rédige un requête fixe dans la propriété CommandText sur la fenêtre "Object Inspector" comme ça:
select * from CDS_Card_Data where ICCID = '89840321080002701056'
par exemple, il marchera bien!!! c'est bizarre!
Merci tous d'avance!

 

 
		
		 
         
 

 
			
			





 
				 problème d'exécution d'un requête SQL!
 problème d'exécution d'un requête SQL!
				 Répondre avec citation
  Répondre avec citation
Partager