How to find columns name according to values in SQL ?
Suppose that i have 5 columns in table . In every columns values is store.
Now how can be find 5 value is store in which columns?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Sep 15, 2015, 2:55 AM EDT
DataTable DT = new DataTable();
foreach (DataColumn column in DT.Columns)
{
}
Priya Singh19 reputationPosted Sep 15, 2015, 3:15 AM EDT