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:
@@ -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;
|
||||
//]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user