2013-05-29 89 views

回答

0

我覺得用這個條件的方式:。

//this is MySQL 
(connection.getMetaData().getDatabaseProductName().compareTo("Google SQL Service/MySQL") == 0) 
+0

connection.getMetaData()getDatabaseProductName()startsWith( 「谷歌」 )應該足夠(並且不易脆)。 – Rob