📄 mysqlcharcount.cpp
字号:
#include <iostream>#include <string>#include "include/config.h"#include "include/MySQLi.h"int main(){ MySQLi* db = new MySQLi( hostname, username, password, dbname, port ); std::string query= "SELECT * FROM `user` Limit 1"; MySQLi_Result* result = db->query(query); MYSQL_ROW row; std::cout << "asdf" << std::endl; while( (row = result->fetch_row()) != NULL ) { std::cout << row[0] << "\r" << row[1] << "\r" << row[2] << std::endl; } db->close(); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -