Right now using SQLite i write the below (I may move to either mysql or ms sql)
command.CommandText = "SELECT count(reset_key) user_data WHERE reset_key=@key;";
This works but is there a more optimized or cleaner way?
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.
That’s about the cleanest, most optimized way there is. Make sure that there’s an index on
reset_keyand it will be very, very fast.