I just asked an SQL related question, and the first answer was: \"This is a situation where dynamic SQL is the way to go.\"
As I had never heard of
Is it something vendor specific?
The SQL-92 Standard has a whole chapter on dynamic SQL (chapter 17) but it only applies to FULL SQL-92 and I know of no vendor that has implemented it.