原创 把SQL查詢結果轉爲Json

1. 普通查詢 select * from test_table 2. 轉爲Json 方法:添加 FOR JSON PATH語句 select * from test_table for json path [{