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

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

PHPz
PHPzforward
2023-08-26 11:25:05773browse

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)

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete