关于这条报错信息,意思是指每个派生出来的表都必须有一个自己的别名。
_mysql_exceptions.OperationalError: (1248, 'Every derived table must have its own alias')
如下两条select语句可以说明这个问题:
select count(*) from (select * from A where uuid='123') ; // error
select count(*) from (select * from A where uuid='123') as a ; // ok
本文解释了一个MySQL错误信息:“Every derived table must have its own alias”,并提供了两个SQL查询示例来展示如何正确地为派生表指定别名。
3874

被折叠的 条评论
为什么被折叠?



