一个运动员表(athlete)和一个项目表(t_item),运动员表中有5项t_item1,t_item2,t_item3,t_item4,t_item5,与项目表中的项目id号(t_item_id)对应,现需要根据t_item1,t_item2,t_item3,t_item4,t_item5把项目表中的项目名(t_item_name)选出来,放到同一条记录当中,该怎么选呢?
解决方案 »
- fastmm的使用问题
- 请问有没有读取视频卡的控件?
- Delphi+SQL Server处理报表real类型如何设置精度?
- 怎么通过LoadCursor加载外部的图标文件? 急急急急急急
- 如何在进程A里通过发送消息的形式改变另一个进程b的鼠标形状?
- 请问高手LISTBOX的SaveToFile能按行数保存为TXT文件吗?
- SQL语句统计人数问题
- help me 如何用sql语句表里增加一个字段。或如何在delphi中实现
- 请大家帮帮忙,给解决这个问题:http://www.csdn.net/expert/topic/432/432737.shtm
- 请问在DELPHI在WIN2000里如何实现关机?请给出代码,一定给高分。
- 如何把string 类型里的数据放到PAnsiChar里
- 我这句SQL在前台执行出错,错在哪里?
(select t_item_name from T_item where T.id=a.T_item2) as m2,
(select t_item_name from T_item where T.id=a.T_item3) as m3,
(select t_item_name from T_item where T.id=a.T_item1) as m4
from athlete a,T_item T