Can anybody tell me what is the propose for a select like this:
SELECT *,format - 1 as bol_format
FROM ...
I don't know the meaning of 'format'.
Thanks.
Moderators: macek, egami, gesf
maktub wrote:SELECT *,format - 1 as bol_format
FROM ...
SELECT format FROM table1;
+--------+
| format |
+--------+
| 5 |
+--------+
SELECT format - 1 FROM table1;
+------------+
| format - 1 |
+------------+
| 4 |
+------------+
SELECT format - 1 AS bol_format FROM table1;
+------------+
| bol_format |
+------------+
| 4 |
+------------+

Users browsing this forum: No registered users and 1 guest