笔记
codequ
https://github.com/rookiequ
展开
-
报错-Every derived table must have its own alias
自己学习参考,如有错误,请各位大神指正!mysql问题:报错-Every derived table must have its own alias这种错误一般出现在sql的多表查询或嵌套查询中。意思是,每一个派生出来的表(临时表)都必须有自己的别名。所有解决方法就是嵌套查询中,出现的派生表必须加上别名,例如 as aselect a.sid, a.sname, a.gender, a.phone, a.birthday, a.hobby, a.info #这里的派生表就要加上别名 as.原创 2020-06-06 18:59:31 · 193 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException报错
org.apache.ibatis.binding.BindingException报错出现这种情况的原因有以下两种:mapper映射文件的namespace和对应的接口不一致没有在mybatis的主配置文件(sqlMapConfig.xml)中,配置mapper映射文件的文件路径org.apache.ibatis.binding.BindingException: Type interface com.user.dao.RoleDAO is not known to the MapperReg原创 2020-06-06 18:56:30 · 628 阅读 · 0 评论