CURRENT_DATABASE
返回您当前连接到的数据库的名称。
语法
current_database()
返回类型
返回 CHAR 或 VARCHAR 字符串。
示例
以下查询返回当前数据库的名称。
select current_database(); current_database ------------------ tickit (1 row)
返回您当前连接到的数据库的名称。
current_database()
返回 CHAR 或 VARCHAR 字符串。
以下查询返回当前数据库的名称。
select current_database(); current_database ------------------ tickit (1 row)