Camila Piai

Camila Piai

  • NA
  • 7
  • 5.2k

Variable in WHERE Statement

Apr 18 2012 6:59 PM
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)