I’m using the MySQL .NET Connector, and I’m wondering how I can get the real and alias names of columns in a query resultset.
Consider the following example:
SELECT COUNT(*) AS Amount FROM Projects
In this scenario, I would like to (from the DataSet) retrieve both the value “COUNT(*)” and the value “Amount” as strings.
Is that even possible?
If you want to get it like that, make it as two columns in the query itself: