提交 db4110c7 编写于 作者: H huolibo

docs: formate and note of java doc

上级 785f8764
...@@ -440,6 +440,7 @@ TDengine has significantly improved the bind APIs to support data writing (INSER ...@@ -440,6 +440,7 @@ TDengine has significantly improved the bind APIs to support data writing (INSER
- JDBC REST connections do not currently support bind interface - JDBC REST connections do not currently support bind interface
- The following sample code is based on taos-jdbcdriver-3.2.1 - The following sample code is based on taos-jdbcdriver-3.2.1
- The setString method should be called for binary type data, and the setNString method should be called for nchar type data - The setString method should be called for binary type data, and the setNString method should be called for nchar type data
- Do not use `db.?` in prepareStatement, should directly use `?`, then specify the database in setTableName, for example: `prepareStatement.setTableName("db.t1")`.
<Tabs defaultValue="native"> <Tabs defaultValue="native">
<TabItem value="native" label="native connection"> <TabItem value="native" label="native connection">
......
...@@ -443,6 +443,7 @@ TDengine 的 JDBC 原生连接实现大幅改进了参数绑定方式对数据 ...@@ -443,6 +443,7 @@ TDengine 的 JDBC 原生连接实现大幅改进了参数绑定方式对数据
- JDBC REST 连接目前不支持参数绑定 - JDBC REST 连接目前不支持参数绑定
- 以下示例代码基于 taos-jdbcdriver-3.2.1 - 以下示例代码基于 taos-jdbcdriver-3.2.1
- binary 类型数据需要调用 setString 方法,nchar 类型数据需要调用 setNString 方法 - binary 类型数据需要调用 setString 方法,nchar 类型数据需要调用 setNString 方法
- 预处理语句中指定子表名称不要使用 `db.?`,应直接使用 `?`,然后在 setTableName 中指定数据库,如:`prepareStatement.setTableName("db.t1")`。
<Tabs defaultValue="native"> <Tabs defaultValue="native">
<TabItem value="native" label="原生连接"> <TabItem value="native" label="原生连接">
...@@ -864,7 +865,7 @@ public class ParameterBindingDemo { ...@@ -864,7 +865,7 @@ public class ParameterBindingDemo {
用于设定 TAGS 取值的方法总共有: 用于设定 TAGS 取值的方法总共有:
````java ```java
public void setTagNull(int index, int type) public void setTagNull(int index, int type)
public void setTagBoolean(int index, boolean value) public void setTagBoolean(int index, boolean value)
public void setTagInt(int index, int value) public void setTagInt(int index, int value)
...@@ -912,7 +913,7 @@ public class SchemalessJniTest { ...@@ -912,7 +913,7 @@ public class SchemalessJniTest {
} }
} }
} }
```` ```
</TabItem> </TabItem>
<TabItem value="ws" label="WebSocket 连接"> <TabItem value="ws" label="WebSocket 连接">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册