`

is invalid in the select list because it is not contained in either an aggregate

阅读更多
当select 语句块中出现function与常列时,需要在where语句块之后加入group by语句,否则会报错
SELECT id, COUNT(name)
FROM t_student
WHERE sequence in(SELECT MIN(sequence) FROM t_student)
GROUP BY name,id

select语句块中出现的function(column_name),需要在group by中捕捉该列
分享到:
评论

相关推荐

    InvalidSignature-The signature is invalid(解决方案).md

    InvalidSignature-The signature is invalid(解决方案).md

    jacob Hiding the application window is not allowed

    设置隐试打开PPT报错 Hiding the application window is not allowed

    微软内部资料-SQL性能优化3

    To make use of either more or less strict isolation levels in applications, locking can be customized for an entire session by setting the isolation level of the session with the SET TRANSACTION ...

    ERROR ITMS-90062: “This bundle is invalid. The value for key CFBundleShortVersionString [1.2] …

    The value for key CFBundleShortVersionString [1.2] in the Info.plist file must contain a higher version than that of the previously approved version [1.15] 明明1.2的版本号要大于1.15,怎么还会出现错误...

    a project model for the FreeBSD Project.7z

    This, combined with the vast amount of dependencies in the kernel and that it is not easy to see all the consequences of a kernel change, demands developers with a relative full understanding of the ...

    GetImageExamples_IS_invalid_not_an_this_

    标题中的"GetImageExamples_IS_invalid_not_an_this_"可能是一个编程或软件开发相关的示例集合,但根据描述,"This is not an invalid description."这似乎是一个误输入或者有误的描述,因为一个无效的描述通常意味...

    2009 达内Unix学习笔记

    ls -l (list)列表显示文件(默认按文件名排序), 显示文件的权限、硬链接数(即包含文件数,普通文件是1,目录1+)、用户、组名、大小、修改日期、文件名。 ls -t (time)按修改时间排序,显示目录和文件。 ls -lt 是...

    Not found the kernel library打不开修复工具.rar

    如果在打开某一程序时出现错误提示:Not found the kernel library or the kernel library is invalid,那是因为缺少相应的内核文件所致,解决方法很简单,将相应的库文件krnln.fnr和shell.fne和程序放在...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    Now it is possible to define is the drawing take place via WMPaint or via the PaintTo direct call (if rcPaint contain non-empty rectangle then WMPaint in progress). - FIX: The TFlexPanel.FPaintCache ...

    Senfore_DragDrop_v4.1

    Just open the forms in the IDE, then select "Ignore All" when the IDE complains that this or that property doesn't exist and finally save the forms. ------------------------------------------- 3. ...

    Universal-USB-Installer

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS...

    WizFlow网页编辑

    GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 ... 51 Franklin Street, ...Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; ...

    hibernate-shards.jar

    Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative...

    InvalidArgument-The argument is invalid(解决方案).md

    InvalidArgument-The argument is invalid(解决方案).md

    微软内部资料-SQL性能优化2

    A reference to an invalid page (a page that is not in your working set) is referred to as a page fault. Assuming the page reference does not result in an access violation, a page fault can be either ...

    曲线拟合工具CurveExpert 1.0

    + if the data set is sorted, all interpolations are now marked invalid as they should be. + "Apply to All" did not necessarily force the current attributes of a graph to the current graph (only if...

    BURNINTEST--硬件检测工具

    port locks up in the Operating System, the error is still reported. - Corrected a bug, where in rare cases, the result summary could be duplicated in a log file. - Updated license management, in ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Another useful rule of thumb: it's typically not cost effective to inline functions with loops or switch statements (unless, in the common case, the loop or switch statement is never executed)....

    BobBuilder_app

    Interestingly the processor architecture plays an important role here as you can see in the performance tests as it is directly related to the sorting key time, the Core iX processors seem to be very ...

Global site tag (gtag.js) - Google Analytics