All_Tables(sch);
SqlSchema sch(MY_SQL);
SQL = session;
Cout() << "Connected\n";
if(session.Connect("root",NULL,"test")){
// edit the connection parameters if necessary
MySqlSession session;
#include <Sql/sch_schema.h>
#include <Sql/sch_source.h>
#include <Sql/sch_header.h>
#define MODEL <NativeMySql/NativeMySql.sch>
#define SCHEMADIALECT <MySql/MySqlSchema.h>
#include <MySql/MySql.h>
STRING_(value,50)
INT_(id)PRIMARY_KEY AUTO_INCREMENT
There are two ways to connect to MySql database using U++ - either through the ODBC layer or directly using MySql libray. Using ODBC is the easier way. The direct connection is more tricky but is more reliable when database is very large and has a lot of records.
Using native connection to MySql
Tato strГѕnka jeЕѕtД nebyla pЕ eloЕena.
Native MySql connection (translated) :: Ultimate++
Комментариев нет:
Отправить комментарий