有北京到静海的大巴吗:SQL语句的问题

来源:百度文库 编辑:神马品牌网 时间:2024/05/04 22:48:38
想把两个表中的选手得分(Score表中的Score)和选手信息(PlayerInformation 中的name)显示在同一个Datagird中。就用了 "select Score.Score , PlayerInformation.Name from Score , PlayerInformation where Score.PlayerInformationID = PlayerInformation.ID"其中Score表中有个PlayerInformationID 是与PlayerInformation中的ID对应的。但运行起来就是不行。怎么回事??

在ORACLE 数据库里我写了个是可以的你看一下
select e.ename, d.dname
from emp e,dept d
where e.deptno = d.deptno;

貌似没问题,在数据库里执行一下查询试试

可能是你的表名与字段名相同了,Score.Score

应该是没有问题的