标签: sql json postgresql
我正在使用Postgresql 9.5.4。如何从json字段中选择字段?我试过了
SELECT balance FROM json_each(SELECT data FROM oauth WHERE provider = 'plaid')
答案 0 :(得分:0)
SELECT data->'balance' as balance FROM oauth WHERE provider = 'plaid'