详探 Apache ShardingSphere SQL Parse Format 功能
经常使用数据库的朋友们一定见过无比复杂的SQL,以下面的SQL语句为例,你能立刻看出来这条SQL的含义吗?selecta.orderid,a.status,sum(b.money)asmoneyfromtorderainnerjoin(selectc.orderidasorderid,c.numberd.priceasmoneyfromtorderdetailcinnerjointorderpricedonc.sidd.sid)bona.orderidb.orderidwhereb.money>100groupbya.orderid经过格式化之后是不是容易理解多了:SELECTa.orderid,a.status,SUM(b.money)ASmoneyFROMto...