sql >> Database >  >> RDS >> PostgreSQL

Voegt jsonArrayAgg samen om de array in jOOQ . leeg te maken

JSON.json() of JSONB.jsonb() , bijv.:

coalesce(jsonArrayAgg(mycol), inline(json("[]")))
coalesce(jsonbArrayAgg(mycol), inline(jsonb("[]")))

jsonArray() of jsonbArray() constructeurs:

coalesce(jsonArrayAgg(mycol), jsonArray())
coalesce(jsonbArrayAgg(mycol), jsonbArray())



  1. mysql hiërarchie self-join, haal alle subcategorieën op

  2. Subsidies opvragen voor een tabel in postgres

  3. herstart mysql-server op Windows 7

  4. MySQL opnieuw verbinden bij time-out