mysql创建视图 报错1349 - View's SELECT contains a subquery in the FROM clause;;

原因创建视图的sql语句中有不支持子查询,

所以需要将子查询的结果单独创建一个视图,

将子查询创建的视图替换到报错的sql语句中即可

转载于:https://www.cnblogs.com/minutes/p/11234735.html

1349 - View's SELECT contains a subquery in the FROM clause相关推荐

  1. View‘s SELECT contains a subquery in the FROM clause

    在mysql中5.7以下版本不适用子查询,高版本可使用子查询创建视图. drop view if exists v_merge_select_business; CREATE ALGORITHM = ...

  2. mysql视图子查询_mysql创建视图不能包涵子查询的解决办法。View's SELECT contains a subquery in the FROM clause...

    如下查询是没问题,但要创建成视图就报View's SELECT contains a subquery in the FROM clause错误. CREATE or REPLACE VIEW `v_ ...

  3. mySql中Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题

    报错信息 Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'a.id' ...

  4. 【阿里云 Linux 服务器】mysql 遇到以下问题Expression #1 of SELECT list is not in GROUP BY clause and contains nonag

    报错信息如下: Caused by: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY ...

  5. Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    场景 安装了mysql5.7,用group by 查询时抛出如下异常: Expression #1 of SELECT list is not in GROUP BY clause and conta ...

  6. 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains解决

    1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'btc ...

  7. mysql 报错解决思考Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    mysql报错: [Err] 1055 - Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggrega ...

  8. mysql遇见Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre的问题

    报错如下: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sss. ...

  9. 报错,> 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    错误: mysql: select * ,count(*)as count from app_cash_trans_log group by app_cash_trans_log.tran_code ...

最新文章

  1. 联发科首发台积电4nm,新旗舰多核跑分与苹果A15不相上下,网友:MTK也要Yes了?...
  2. docker一键部署jenkins服务(一)
  3. Python 3.6安装教程
  4. 面试题25: 合并两个排序的链表
  5. mysql有dataguard吗_DataGuard部署
  6. spring里的controller之间的跳转
  7. java输出不同颜色_Java设计模式-策略模式、状态模式
  8. 【Python】文本进度条
  9. 安装JDK 9与使用jshell
  10. 中国省市区乡县名称代码对照表
  11. 冯诺依曼体系结构浅析
  12. 深度学习 - 生成对抗网络
  13. 压缩或解压文件出现循环冗余检查的解决办法
  14. 深交所互动平台_“国六”标准实施在即,互动平台“抖出”大波概念股
  15. win7下运行.php,Win7下在IIS7中配置PHP的FastCGI支持_笔记
  16. 【Nmap】常用命令「一」——活跃主机发现
  17. 谷歌浏览器 打开网页出现 out of memory
  18. 一个简单的视频播放器
  19. 铸造硅砂行业类型、应用、地区及竞争等维度分析
  20. linux系统安装内存测试,一种Linux系统下基于IDK内存注错的测试方法及系统与流程...

热门文章

  1. Python命名空间和作用域
  2. Java拆分字符串的函数——split
  3. SQLite数据库损坏与修复
  4. Spring IOC 核心流程浓缩
  5. PyTorch基础(13)-- torch.nn.Unfold()方法
  6. php ci 表单校验,表单验证 - CodeIgniter 中文手册|用户手册|用户指南|Wiki文档
  7. Leetcode 分类 题解 收集
  8. BCOS系统合约介绍
  9. MXNet设计和实现简介
  10. Android Broadcast广播机制分析