首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Qt插入MySQL数据库源代码

Qt插入MySQL数据库源代码

资 源 简 介

Qt插入数据到mysql数据库,自行建立数据库(网上有教程),数据库按照如下代码在DOS界面建立,实测有用。 1、在运行框输入cmd,以管理员身份运行,输入mysql(前提是数据库和Qt连接成功)。 2、输入mysql; 3、建议一个数据库create database name; 4、use name; 5、create table device( ID int unsigned auto_increment primary key, Present1 int not NULL, Present2 int not NULL, Devices_Type varchar(40) not NULL, X double(8,2) not NULL, Y double(8,2) not NULL, Z double(8,2) not NULL, W double(8,2) not NULL );

文 件 列 表

renwu_dialog.pro.user
widget.cpp
widget.h
datainsertdialog.cpp
datainsertdialog.h
datainsertdialog.h.autosave
main.cpp
renwu_dialog.pro
VIP VIP
0.168590s