gcdb::get_charset_collate()
最后更新于:2021-11-26 08:39:31
gcdb::get_charset_collate()Retrieves the database character collate.
响应
(string) The database character collate.
源文件
文件: gc-includes/gc-db.php
public function get_charset_collate() {
$charset_collate = '';
if ( ! empty( $this->charset ) ) {
$charset_collate = "DEFAULT CHARACTER SET $this->charset";
}
if ( ! empty( $this->collate ) ) {
$charset_collate .= " COLLATE $this->collate";
}
return $charset_collate;
}