Column ‘id’ in field list is ambiguous
select student.id, student.name, score.total
from student, score
where student.id = score.id
使用别名的例子:
用表名进行区分的例子:
select s.id, s.name, c.total
from student s, score c
where s.id = c.id
Column ‘id’ in field list is ambiguous
select student.id, student.name, score.total
from student, score
where student.id = score.id
使用别名的例子:
用表名进行区分的例子:
select s.id, s.name, c.total
from student s, score c
where s.id = c.id