达梦group by 别名
时间: 2023-08-28 14:06:29 浏览: 261
达梦数据库中,在使用group by语句时,是不允许使用别名的。引用中提到了一个sql改造的例子,如果在select中使用了别名,那么在group by语句中就需要使用原始字段名进行分组。例如,如果在select中使用了别名R.APP_NAME,那么在group by语句中就需要使用原始字段名APP_NAME进行分组。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [group by别名出错](https://blog.csdn.net/weixin_46300771/article/details/122262448)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [达梦数据库(DM8),GROUP BY 表达式报错解决办法](https://blog.csdn.net/zccmp20/article/details/114281686)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文