Vous n’êtes pas connecté.
![]() |
Code source |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#include <stdio.h> #include <iostream> #include <iomanip> #include <sqlplus.hh> using namespace std; int main() { Connection con("JOME", "localhost", "root", ""); Query query = con.query(); query << "select * from user"; Result res = query.store(); cout << "Query: " << query.preview() << endl; cout << "Records Found: " << res.size() << endl << endl; Row row; cout.setf(ios::left); cout << setw(17) << "Name" << setw(17)<< "PW" << endl << endl; Result::iterator i; for (i = res.begin(); i != res.end(); i++) { row = *i; cout << setw(17) << row[0] << setw(17) << row[1] << endl << endl; } return 0; } |
![]() |
Code source |
1 2 3 |
d:\programme\vc98\include\mysql_com.h(115) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'fd' d:\programme\vc98\include\mysql_com.h(115) : error C2501: 'SOCKET' : Fehlende Speicherklasse oder Typbezeichner d:\programme\vc98\include\mysql_com.h(115) : error C2501: 'fd' : Fehlende Speicherklasse oder Typbezeichner |
![]() |
Code source |
1 2 3 4 5 6 |
typedef struct st_net { Vio* vio; my_socket fd; /* For Perl DBI/dbd */ int fcntl; unsigned char *buff,*buff_end,*write_pos,*read_pos; char last_error[MYSQL_ERRMSG_SIZE]; |
-