From ad437174b9d324bc26c5605a477a4e23a2bec4e0 Mon Sep 17 00:00:00 2001 From: lihuihui Date: Wed, 2 Aug 2023 16:49:36 +0800 Subject: [PATCH] rdb Signed-off-by: lihuihui --- .../application-dev/napi/native-relational-store-guidelines.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/napi/native-relational-store-guidelines.md b/zh-cn/application-dev/napi/native-relational-store-guidelines.md index 0c67c32dea..2e185abd72 100644 --- a/zh-cn/application-dev/napi/native-relational-store-guidelines.md +++ b/zh-cn/application-dev/napi/native-relational-store-guidelines.md @@ -69,7 +69,8 @@ RelationalStore是RDB组件在Native层的实现,提供了一套完整的对 2. 获取到OH_Rdb_Store后,调用OH_Rdb_Execute接口创建表,并调用OH_Rdb_Insert接口插入数据。示例代码如下所示: ```c - char createTableSql[] = "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, AGE INTEGER, SALARY REAL, CODES BLOB)"; + char createTableSql[] = "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, " + "AGE INTEGER, SALARY REAL, CODES BLOB)"; // 执行建表语句 OH_Rdb_Execute(store_, createTableSql); -- GitLab