4
Answers

Variable in WHERE Statement

Camila Piai

Camila Piai

12y
1.8k
1
I'm trying to use a variable in WHERE Statement in C#

Example:

"Select * from table1 WHERE cod_table1 = contr"
 (contr is a int variable already declared); 

But it's not working. 
What can be done?
Answers (4)