我在Access 2010中有三个表(room_info,student_info,commodity_info)
1- room_info
room_id - autonumber - primary key
room_no - number
floor_no - text
part_type - text
year_reserved - text
2- student_info
student_id - autonumber - primary key
student_name - text
college - text
dept - text
stage - text
card_id - number
mobile_No - number
room_id - number - foreign key
3- commodity_info
commodity_id - autonumber - primary key
chair - number
desk - number ..............
room_id - number - foreign key
我想创建一个select查询来从c#中的这三个表中选择数据?
答案 0 :(得分:1)
<强> INNER JOIN in MS-ACCESS 强>
我无法为您提供完整的C# code
,就像勺子喂食一样。
select *
from ((room_info
inner join student_info on room_info.room_id =student_info.room_id)
inner join commodity_info on room_info.room_id =commodity_info.room_id)