0

I have a SQLite table with columns like these: id, name_1, name_2, name_nick, phone, email

and I am looking for a way to search in all columns which begins with name_.

Like LIKE but for the column names.

I find a lot for MySQL etc, but just this one for SQLite:
https://stackoverflow.com/a/60814644/8110291
But it is for a query with two tables and i need only one.

The solution should be pure SQL, because I am just starting to deal with this language and I want to get to know the possibilities.

droopsnoot
  • 931
  • 1
  • 7
  • 11
kolja
  • 505
  • 7
  • 24

0 Answers0