Advertisement
Guest User

row to json postgresql

a guest
Sep 19th, 2013
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.40 KB | None | 0 0
  1.  $ SELECT row_to_json(json_demo) FROM json_demo;
  2.                                          row_to_json                                
  3.          ----------------------------------------------------------------------------
  4.           {"id":1,"username":"john","email":"john@gmail.com","posts_count":10}
  5.           {"id":2,"username":"mickael","email":"mickael@gmail.com","posts_count":50}
  6.          (2 ROWS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement