From e6ec05e155e8ef7f0088595ca7187176db664a59 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Mon, 30 Dec 2024 14:59:26 +0800 Subject: [PATCH] docs: update document for python --- docs/zh/14-reference/05-connector/30-python.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/zh/14-reference/05-connector/30-python.mdx b/docs/zh/14-reference/05-connector/30-python.mdx index c91e9775f4..0c15d866d5 100644 --- a/docs/zh/14-reference/05-connector/30-python.mdx +++ b/docs/zh/14-reference/05-connector/30-python.mdx @@ -258,7 +258,7 @@ TaosResult 对象可以通过循环遍历获取查询到的数据。 - **接口说明**:绑定预编译 sql 语句 - **参数说明**: - `sql`: 绑定的 SQL 语句 - - **异常**:操作失败抛出 `ProgrammingError` 异常。 + - **异常**:操作失败抛出 `StatementError` 异常。 - `def bind_param(self, tbnames, tags, datas)` - **接口说明**:以独立数组方式绑定数据 - **参数说明**: @@ -281,7 +281,7 @@ TaosResult 对象可以通过循环遍历获取查询到的数据。 - `def close(self)` - **接口说明**: 关闭 stmt2 对象 -[示例](http://example.code.stmt2) +[使用示例](http://https://github.com/taosdata/TDengine/tree/main/docs/examples/python/insert_with_stmt2.py) #### 数据订阅 @@ -435,7 +435,7 @@ TaosResult 对象可以通过循环遍历获取查询到的数据。 - **接口说明**:绑定预编译 sql 语句 - **参数说明**: - `sql`: 绑定的 SQL 语句 - - **异常**:操作失败抛出 `ProgrammingError` 异常。 + - **异常**:操作失败抛出 `StatementError` 异常。 - `def bind_param(self, tbnames, tags, datas)` - **接口说明**:以独立数组方式绑定数据 - **参数说明**: @@ -458,6 +458,8 @@ TaosResult 对象可以通过循环遍历获取查询到的数据。 - `def close(self)` - **接口说明**: 关闭 stmt2 对象 +[使用示例](http://https://github.com/taosdata/TDengine/tree/main/docs/examples/python/insert_with_stmt2.py) + #### 数据订阅 - **创建消费者支持属性列表**: - td.connect.ip:主机地址。