公交車路線查詢系統后臺之軟件數據庫設計[3] 數據庫開發
關鍵字:路線查詢系統 數據庫設計
總站點數
from
RouteT0 r1,
RouteT0 r2,
RouteT0 r3
where
r1.StartStop=@StartStop
and r1.EndStop=r2.StartStop
and r2.EndStop=r3.StartStop
and r3.EndStop=@EndStop
end
4.測試
exec InquiryT0 ''S1'',''S2''
exec InquiryT1 ''S1'',''S8''
exec InquiryT2 ''S1'',''S9''
運行結果:
延伸閱讀
文章來源于領測軟件測試網 http://www.anti-gravitydesign.com/