This is my query:
SELECT *, `online_since`-NOW() as 'uptime' FROM map_eline_dots
I want it to select all columns in map_eline_dots plus an extra field “uptime” that contains the result of
online_since - NOW()
However I’m getting the same result now as I did from
SELECT * FROM map_eline_dots
What am I doing wrong? Do I HAVE to select every single one of the other 30 columns manually?
Like this:
Or like this.
You have to qualify the asterisk, if you select more than just the asterisk. (I removed backticks and quotes to increase readability)