- PHP 手册
- 函数参考
- 数据库扩展
- 针对各数据库系统对应的扩展
- Ingres
- Ingres 函数
ingres_charset
(PECL ingres >= 2.1.0)
ingres_charset — Returns the installation character set
说明
ingres_charset ( resource$link
) : string
ingres_charset() is called to determine the character set being used by the Ingres client, from II_CHARSETxx (where xx is the installation code).
Note:
You can override the value returned by using the function putenv(). Changing the value of II_CHARSETxx in a running Ingres installation can cause data corruption.
参数
-
link
-
The connection link identifier
返回值
Returns a string with the value for II_CHARSETxx or returns NULL if the value could not be determined.
范例
Example #1 ingres_charset() - Get the installation character set
<?php
$link = ingres_connect($database, $user, $password);
echo ingres_charset($link) . "\n";
ingres_close($link);
?>
参见
- ingres_connect() - Open a connection to an Ingres database
- ingres_query() - Send an SQL query to Ingres
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/function.ingres-charset.php