Fix issue in typescript (#3922)

json_build_object is used to create json object and get it
pull/4474/head
Matvey Volkov 1 year ago committed by GitHub
parent bb9cc31e8a
commit 4c9371ee74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/data/roadmaps/postgresql-dba/content/104-learn-sql-concepts/103-advanced-topics/index.md

@ -55,7 +55,7 @@ This query retrieves the entire hierarchy of categories using a recursive CTE.
PostgreSQL has support for JSON and JSONB data types. JSON functions enable you to create, manipulate, and query JSON data directly in your SQL queries.
```sql
SELECT json_object('name', name, 'age', age) as json_data
SELECT json_build_object('name', name, 'age', age) as json_data
FROM users;
```

Loading…
Cancel
Save