摘要:
使用下面的语句查询: select COLUMN_NAME from information_schema.COLUMNS where table_name = ‘your_table_name’; 上述的做法有一点问题,如果多个数据库中存在你想要查询的表名,那么查询的结果会包括全部的字段信息。通过 阅读全文
摘要:
void Widget::connectDB(){ // > 读取配置文件 QSettings * cfg = new QSettings(cfgpath,QSettings::IniFormat); int port = cfg->value("NET/port").toInt(); QStrin 阅读全文