In MySQL, we can simply specify the SELECT condition separately to get self-calculated output. The 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)
The above is the detailed content of How to get self-calculation output from MySQL without a virtual table named Dual?. For more information, please follow other related articles on the PHP Chinese website!