Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Get Self-Computed Output from MySQL without Dummy Table



In MySQL, we can simply specify the SELECT conditions all alone to get the self-computed output. Following example will demonstrate it −

mysql> Select 1+1;

+-----+
| 1+1 |
+-----+
| 2   |
+-----+
   
1 row in set (0.02 sec)

mysql> Select 1;

+---+
| 1 |
+---+
| 1 |
+---+

1 row in set (0.00 sec)
Updated on: 2020-01-29T06:25:36+05:30

156 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements