; SELECT t.errmsg,sms_records.* FROM sms_records, jsonb_to_record(result_json) AS t(errmsg text,sid text) select tb_result.errmsg,* from ( select t1.*,t2.account_type,t2.account_name ,t3.report_status,t3.errmsg,t3.user_receive_time,t3.description fro…