public OleDbDataReader SqlFindColomnName(string s2) { con.Close(); con.Open(); cmd = new OleDbCommand("select classname, CASE WHEN subject1 = '" + s2 + "' THEN 'subject1' WHEN subject2 = '" + s2 + "' THEN 'subject2' WHEN subject3 = '" + s2 + "' THEN 'subject3' END AS Subject from studentregistration", con); OleDbDataReader rd = cmd.ExecuteReader(); return rd; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)