mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-10 11:14:09 +02:00
Fix issue in typescript (#3922)
json_build_object is used to create json object and get it
This commit is contained in:
@@ -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.
|
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
|
```sql
|
||||||
SELECT json_object('name', name, 'age', age) as json_data
|
SELECT json_build_object('name', name, 'age', age) as json_data
|
||||||
FROM users;
|
FROM users;
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -95,4 +95,4 @@ CREATE INDEX idx_users_city ON users (city);
|
|||||||
|
|
||||||
This command creates an index on the `city` column of the `users` table to speed up queries involving that column.
|
This command creates an index on the `city` column of the `users` table to speed up queries involving that column.
|
||||||
|
|
||||||
These advanced topics can help you become a highly skilled PostgreSQL user and tackle complex real-world problems effectively. As you become more comfortable with these advanced concepts, you will unleash the full power of SQL and PostgreSQL.
|
These advanced topics can help you become a highly skilled PostgreSQL user and tackle complex real-world problems effectively. As you become more comfortable with these advanced concepts, you will unleash the full power of SQL and PostgreSQL.
|
||||||
|
Reference in New Issue
Block a user