2011-06-02 28 views

回答

1

您可以使用適用於MySQL的VCL DAC(http://download.cnet.com/DAC-for-MySQL/3000-2066_4-10066109.html)或odbc connect MySql。

try 
{ 
    con->Connected=false; 
    con->ConnectionString=ConnectStringmysql(); 
    con->Connected=true; 
} 
catch(Exception& e) 
{ 
    ShowMessage("failed!"); 
    return; 
} 
相關問題