Update sql.md

This commit is contained in:
Jarred Sumner
2025-01-21 04:13:35 -08:00
parent 16054fa5e8
commit 990c84a13b

View File

@@ -122,7 +122,7 @@ This returns something like:
];
```
`sql``.values()` is especially useful if duplicate column names are returned in the query results. When using objects (the default), the last column name is used as the key in the object -- but when using `sql``.values()`, each column is present in the array so you can access it by index.
`sql``.values()` is especially useful if duplicate column names are returned in the query results. When using objects (the default), the last column name is used as the key in the object, which means duplicate column names overwrite each other — but when using `sql``.values()`, each column is present in the array so you can access the values of duplicate columns by index.
### `sql``.raw()` format