SELECT json_array_agg(json_build_object('id', id, 'data', data)) FROM mytable WHERE id=5. 不过,我不知道在ORM模式下要实现该目标有多困难。
確定! 回上一頁