#1:硬座价格,#0软座价格
select case when 1=0 then HardSeatPrice else SoftSeatPrice end from tb_train_schedule
where StartStationID=(select id from tb_train_station where name like "%广州%")
and EndStationID=(select id from tb_train_station where name like "%长沙%");
MySQL-select case when
最新推荐文章于 2025-11-08 17:50:55 发布
本文介绍了一种通过SQL查询从广州到长沙列车票价的方法。具体包括硬座和软座的价格。
966

被折叠的 条评论
为什么被折叠?



