String st = "select count(*) from treat_info,patient_table where treat_info.pid=patient_table.pid"; OracleCommand cmd = new OracleCommand(st); cmd.Connection = cn; OracleDataReader rd = cmd.ExecuteReader(); rd.Read(); int c = rd.GetInt32(0);//error in this line specific cast is not valid MessageBox.Show(c.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)