当前位置:Gxlcms > mysql > mysql原生SQL查询错误出现异常“Everyderivedtablemusthave

mysql原生SQL查询错误出现异常“Everyderivedtablemusthave

时间:2021-07-01 10:21:17 帮助过:66人阅读

mysql原生SQL查询异常出现错误“ Every derived table must have its own alias” select count(*) from ( " + hsql + " ) ?移植了部分从oracle查询语句过来,结果所有分页查询都有问题,经检查原来是MYSQL 需要在表后面增加别名的规则限制; 调整正常,其代

mysql原生SQL查询异常出现错误“ Every derived table must have its own alias”
select count(*) from ( " + hsql + " ) 

?移植了部分从oracle查询语句过来,结果所有分页查询都有问题,经检查原来是MYSQL 需要在表后面增加别名的规则限制;

调整正常,其代码为:

select count(*) from ( " + hsql + " ) as atab

?

人气教程排行