I have a table with column names a1,a2...,b1.b2....
a1,a2...,b1.b2...
How can I select all those with column names like a%?
a%
You cannot with standard SQL. Column names are not treated like data in SQL.
If you use a SQL engine that has, say, meta-data tables storing column names, types, etc. you may select on that table instead.
2.1m questions
2.1m answers
60 comments
57.0k users