Home > Database > Mysql Tutorial > body text

What are the limitations on the number of rows and columns when querying MySQL without a list of tables?

PHPz
Release: 2023-08-26 11:25:05
forward
807 people have browsed it

MySQL 查询没有表列表时,在行数和列数方面有什么限制?

The limitation on MySQL queries with significant lists is that it can only return one row as a result, but the result can contain multiple columns.

Example

mysql> Select 65/NULL,65+NULL,65*NULL,65-NULL,65%NULL;
+------------+--------------+-------------+-------------+---------+
| 65/NULL    | 65+NULL      | 65*NULL     | 65-NULL     | 65%NULL |
+------------+--------------+-------------+-------------+---------+
|       NULL |         NULL |        NULL |        NULL |    NULL |
+------------+--------------+-------------+-------------+---------+
1 row in set (0.00 sec)
Copy after login

In the above example, we can see that MySQL only returns one row and five columns, with the results of five expressions. This is when we The result when there is no table list in the statement.

The above is the detailed content of What are the limitations on the number of rows and columns when querying MySQL without a list of tables?. 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