
数据库
文章平均质量分 76
菜鸟502
我只是一个菜鸟!
展开
-
sqlite3基本操作
string path = "device.db"; sqlite3 *pDB; sqlite3_stmt *stmt; char *errMsg; if(!Utility::isFileORDirExist(path)) {//判断数据库文件是否已经存在,不存在是创建数据库和数据库表 int res = sqlite3_open(path.c_原创 2016-01-02 21:48:39 · 718 阅读 · 0 评论 -
sqlite基本操作补充
string path = MGBundle::mainBundle()->userFilePathWithFileName("brush_data.db"); sqlite3 *pDB; char *errMsg; if(!Utility::isFileORDirExist(path)) { int res = sqlite3_open(path.原创 2016-01-14 21:59:14 · 630 阅读 · 0 评论 -
SQL编程——MySQL数据库基本操作
实验平台:mysql5.7, 案例:大学课本中数据库课程学习时用的学生-课程-成绩 实际的数据库设计可能和课本中有出入 E-R如下: 代码如下:#1. 数据库创建 DROP DATABASE IF EXISTS scoredb; CREATE DATABASE scoredb; #2. 创建表 #1) 创建新表 USE scoredb; CREATE TABLE student (原创 2016-07-27 14:33:39 · 4325 阅读 · 0 评论