2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-28 19:32:10 +00:00

Renamed qbks to include ordering

This commit is contained in:
Ruben Perez
2022-11-04 19:08:07 +01:00
parent 9f09cbc69c
commit 486bddc8ef
21 changed files with 113 additions and 195 deletions

View File

@@ -60,17 +60,20 @@ void main_impl(int argc, char** argv)
//]
//[tutorial_query
// Issue the SQL query to the server
const char* sql = "SELECT \"Hello world!\"";
boost::mysql::tcp_ssl_resultset result;
conn.query(sql, result);
//]
//[tutorial_read
// Read the query results into memory
boost::mysql::rows all_rows;
result.read_all(all_rows);
//]
//[tutorial_fields
// Print the first field in the first row
std::cout << all_rows.at(0).at(0) << std::endl;
//]