Mysql有无groupby对max函数查询结果的影响ResultSet中有无记录受
例子:mysql测试结果,其他数据库不支持有组函数没group by SELECT MAX(SUBSTR(id,7,10)),id FROM t_ad_video WHERE SUBSTR(id,1,6) = '140116' 此结果resutl中是有一条记录的。 vcD4KPHA+zqqx3MPitMvW1srCx+m3osn60OjSqrzTyc9ncm91cCBiedfWvuQ8L3A+CjxwPlNF
例子:mysql测试结果,其他数据库不支持有组函数没group by
SELECT MAX(SUBSTR(id,7,10)),id FROM t_ad_video WHERE SUBSTR(id,1,6) = '140116'
此结果resutl中是有一条记录的。喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+zqqx3MPitMvW1srCx+m3osn60OjSqrzTyc9ncm91cCBiedfWvuQ8L3A+CjxwPlNFTEVDVCBNQVgoU1VCU1RSKGlkLDcsMTApKSxpZCxTVUJTVFIoaWQsMSw2KSBkZCBGUk9NIHRfYWRfdmlkZW8gV0hFUkUgU1VCU1RSKGlkLDEsNikgPSA="140116' GROUP BY SUBSTR(id,1,6)
此时resultset中没有记录
以上只是举个例子说明这个问题,无实际意义

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The page is blank after PHP connects to MySQL, and the reason why die() function fails. When learning the connection between PHP and MySQL database, you often encounter some confusing things...

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

"DebianStrings" is not a standard term, and its specific meaning is still unclear. This article cannot directly comment on its browser compatibility. However, if "DebianStrings" refers to a web application running on a Debian system, its browser compatibility depends on the technical architecture of the application itself. Most modern web applications are committed to cross-browser compatibility. This relies on following web standards and using well-compatible front-end technologies (such as HTML, CSS, JavaScript) and back-end technologies (such as PHP, Python, Node.js, etc.). To ensure that the application is compatible with multiple browsers, developers often need to conduct cross-browser testing and use responsiveness

Comparison of Redis queues and MySQL stability: Why is Redis prone to data loss? In the development environment, using PHP7.2 and ThinkPHP frameworks, we often face the choice of cooperation...

Using Django and MySQL to process large data volumes When using Django and MySQL databases, if your data volume reaches hundreds of thousands to one or two million...

Under the BeegoORM framework, how to specify the database associated with the model? Many Beego projects require multiple databases to be operated simultaneously. When using Beego...

This article discusses how to optimize website performance on Debian systems. "DebianStrings" is not a standard term and may refer to tools or technologies used in Debian systems to improve website performance. The following are some practical tips: 1. It is recommended to use the Pagoda panel to simplify the installation and configuration process for web server and PHP environment configuration. It is recommended to install Nginx1.22.1 as the web server, PHP8.2 as the script interpreter, and MySQL10.7.3-MariaDB as the database system. Be sure to enable the necessary PHP extensions, such as fileinfo, opcache, memcached, red

django mysql...
