[C# - MySql] LC Warehouse!
#5

After you execute the query you should get an result. According to that result where you have to parse that result:

 

MySqlDataReader myReader = insertBann.ExecuteReader();
try{
//reading rows if the result are multiple rows
while(myReader.Read()){
//if for every column you could use myReader.GetInt32(0), myReader.GetString(0),
//where 0 is the column number(0 first column, 1 second column,...)
int i =myReader.GetInt32(0);
}
}finally{
myReader.close();
connection.close();
}



Messages In This Thread
[No subject] - by Nikolee - 09-09-2012, 08:32 PM
[No subject] - by SeaLife - 09-10-2012, 12:59 PM
[No subject] - by HateMe - 09-10-2012, 01:08 PM
[No subject] - by Nikolee - 09-10-2012, 01:50 PM
[No subject] - by someone - 09-10-2012, 02:26 PM
[No subject] - by Nikolee - 09-10-2012, 02:31 PM
[No subject] - by TheEvilAnt - 09-19-2012, 01:43 PM
[No subject] - by Nikolee - 09-22-2012, 10:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)