Error code: 1054 Unknown column & #39; t. createUsrId & #39; in & #39; group statement & #39;, 1054t. createusrid

Source: Internet
Author: User

Error code: 1054 Unknown column't. createUsrId 'in 'group statement', 1054t. createusrid

1. Error description

1 queries executed, 0 success, 1 errors, 0 warnings query: select count (t. id), t. 'createuserid' from t_acs_ints t where t. id not in (SELECT t1.ionId FROM t_acs_cont t1, t_ac... error code: 1054 Unknown column't. createUsrId 'in 'group statement 'execution time: 0 sec Transfer Time: 0 sec total time consumed: 0 sec

2. Error cause

When grouping SQL statements, this field cannot be identified (that is, it does not exist in the table) due to carelessness, resulting in an error. The field name of the database table is createUserId, after group by, it is written as createUsrId.


3. Solution

Change the field name after group by to group by t. createUserId.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.