未验证 提交 817354d0 编写于 作者: O openharmony_ci 提交者: Gitee

!8253 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】update...

!8253 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】update zh-cn/application-dev/database/database-relational-guidelines.md.
Merge pull request !8253 from 胡梦园/N/A
......@@ -198,7 +198,7 @@
import data_rdb from '@ohos.data.rdb'
const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)";
const STORE_CONFIG = {name: "rdbstore.db",}
const STORE_CONFIG = {name: "rdbstore.db"}
data_rdb.getRdbStore(this.context, STORE_CONFIG, 1, function (err, rdbStore) {
rdbStore.executeSql(CREATE_TABLE_TEST)
console.info('create table done.')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册