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";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
May be you expect something like this
or