未验证 提交 11288b05 编写于 作者: W wade zhang 提交者: GitHub

Update rust.mdx

上级 71b82235
...@@ -301,7 +301,7 @@ let mut stmt: Stmt = taos.stmt("insert into ? values(?,?)")?; ...@@ -301,7 +301,7 @@ let mut stmt: Stmt = taos.stmt("insert into ? values(?,?)")?;
```rust ```rust
let mut stmt = taos.stmt("insert into ? using stb0 tags(?) values(?,?)")?; let mut stmt = taos.stmt("insert into ? using stb0 tags(?) values(?,?)")?;
// 可以创建任意类型的标签,以 JSON 类型为例。 // tags can be created with any supported type, here is an example using JSON
let v = Field::Json(serde_json::from_str("{\"tag1\":\"一二三四五六七八九十\"}").unwrap()); let v = Field::Json(serde_json::from_str("{\"tag1\":\"一二三四五六七八九十\"}").unwrap());
stmt.set_tbname_tags("tb0", [&tag])?; stmt.set_tbname_tags("tb0", [&tag])?;
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册