I got a table (called users) with n column ( n= one billion columns) like this:
id, email,username,...,...,...,..col_n.
I want to show all data exclusion id, email with the only Select query. i don't want to type all field what i want.
How can i do that?
For example: Table users:
+--------+----------+------------+-----------+
| userid | username | password | privilege |
+--------+----------+------------+-----------+
| 1 | user1 | password | 1 |
| 2 | david | goodboy | 1 |
| 3 | admin | mastermold | 5 |
| 4 | user4 | password4 | 1 |
| 5 | user5 | password5 | 2 |
| 6 | user6 | password6 | 1 |
| 7 | user7 | password7 | 1 |
+--------+----------+------------+-----------+
The result after run query like this:
+--------+----------+
| userid | username |
+--------+----------+
| 1 | user1 |
| 2 | david |
| 3 | admin |
| 4 | user4 |
| 5 | user5 |
| 6 | user6 |
| 7 | user7 |
+--------+----------+
My problem: my table have one billion fields and i have to use the only one select query.