Skip to content

Commit 8e2d8e5

Browse files
authored
Merge pull request #775 from ydb-platform/asmyasnikov-patch-1
Update SQL.md
2 parents c18d685 + 0bf2635 commit 8e2d8e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SQL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ err := retry.DoTx(context.TODO(), db, func(ctx context.Context, tx *sql.Tx) erro
350350
)
351351
```
352352

353-
## Query bindings \<a name="bindings"\>\</a\>
353+
## Query bindings <a name="bindings"></a>
354354

355355
`YQL` is a language with strict types. This means that a query to `YDB` must be written with an explicit declaration of query parameter types using the `DECLARE`keyword. Also, in some cases, the special `PRAGMA` operator can be used to simplify of the full table path prefix. For example, a query to the table `/local/path/to/tables/seasons` might look like this:
356356

@@ -421,7 +421,7 @@ func main() {
421421
var (
422422
ctx = context.TODO()
423423
db = sql.Open("ydb", "grpc://localhost:2136/local?"+
424-
"go_query_bind=table_path_prefix(/local/path/to/my/folder),declare,positional")
424+
"go_query_bind=table_path_prefix(/local/path/to/my/folder),declare,positional")
425425

426426
// alternate syntax for enabling bindings over connection string params
427427
//

0 commit comments

Comments
 (0)