Reflection for SQL?
http://en.wikipedia.org/wiki/Reflection_(computer_science)SQL is a query language, is designed to describe a information request, you have a prior knowledge about structure.
You will ask about "SELECT Name FROM Horses WHERE Type=1", because you know the structure.
SQL has not been designed for reflection, but there are extensions, so you can do that. But will feel like OOP with C, the languaje support for it will suck.