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
?