How do i assign variable cats so that it pulls the rows in database which we specify in cat variable ? I did query like below but doesn't work. Thanks
var cats = "white";
var selectCommand = "SELECT TOP(10) * FROM mytable WHERE parent = @cats";
How do i assign variable cats so that it pulls the rows in database which we specify in cat variable ? I did query like below but doesn't work. Thanks
var cats = "white";
var selectCommand = "SELECT TOP(10) * FROM mytable WHERE parent = @cats";