是否有一种方法可以区分PostgreSQL, MySQL或MSSQL连接资源的差异?


Is there a way to tell the differences of a PostgreSQL, MySQL or MSSQL connection resource?

如果我有$dbConn(数据库连接),我不知道如果它是MySQL, MSSQL或PostgreSQL我能告诉什么类型的连接它是?

只是想知道是否有方法返回资源id的连接类型?

编辑:抱歉,是PHP添加了标签
$connection = mysql_connect(...); 
$is_mysql = (get_resource_type($connection) == 'mysql link');
$is_ibase = (get_resource_type($connection) == 'Firebird/InterBase link'); // *
var_dump($is_mysql); // -> true
// * supposed to be "interbase link" but isn't any longer