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.
1.4m articles
1.4m replys
5 comments
57.0k users