Microsoft
Software
Hardware
Network
Question : c# select command no return
hello
i use mysqlcommand and try simple select command
and my query is not any return..
so how can i handle this case ?
thanks
example :
select * from table where id = 1
and there isn't any row..
and i want to this
if (select no return)
{
do it
}
thanks and regards
Answer : c# select command no return
SqlDataReader reader = mysqlcommand.ExecuteReader
();
if (!reader.HasRows) {
// do it
}
else
Random Solutions
What are some good guides on designing and building video games
Charging devices via USB port on laptop
How can I uninstall a corrupt broadcom driver?
htaccess Partial Query String Rewrite
Customize Outlook Today by Adding Public Calendar
QOS And routing behind a bridged device on Cisco 2800 series router
Command to remove #'s from a text file
ACT 2009! registration error, windows 7 (exception error popup)
C# ASP.NET code hanging for no reason...
Server security analysis to determine patch level