Home > Database > Mysql Tutorial > How to get self-calculation output from MySQL without a virtual table named Dual?

How to get self-calculation output from MySQL without a virtual table named Dual?

WBOY
Release: 2023-09-06 19:25:02
forward
912 people have browsed it

在没有名为 Dual 的虚拟表的情况下,如何从 MySQL 获取自计算输出?

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)
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template