select c.*,s.* from classeshql c INNER JOIN studenthql s on c.cid=s.cid;the correct sql 应该是这样 既然取了别名就要拿出俩用
我试了一下但的确需要使用别名,还有ON关键字是要与JOIN一起使用吧,要不然你就使用where