【mysql】根据某个列名规定的字段排序 order by case when
于 2023-02-16 10:48:42 首次发布
该SQL查询从tn_grms_stock_record和tn_grms_stock_record_item表中,基于batch_no=R202302150003进行JOIN操作,然后根据t1.type的值(1或0)计算t2.remain_quantity或t2.quantity的总和。
该SQL查询从tn_grms_stock_record和tn_grms_stock_record_item表中,基于batch_no=R202302150003进行JOIN操作,然后根据t1.type的值(1或0)计算t2.remain_quantity或t2.quantity的总和。
2550

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