Skip to content

Commit db81ec2

Browse files
committed
update 6
1 parent db40ec4 commit db81ec2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

CN/modules/ROOT/pages/master/110.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ h| 函数名称 h| current_catalog
1313
| 函数返回值数据类型 | Name
1414
| 函数含义 | 获得当前的database 名称。注意:在SQL标准中,databases被称之为catalogs.
1515
| 使用举例
16-
a| postgres=# select current_catalog;current_catalog -----------------postgres(1 row) +
16+
a|
17+
[source,sql]
18+
----
19+
postgres=# select current_catalog;
20+
current_catalog
21+
-----------------
22+
postgres
23+
(1 row)
1724
postgres=#
18-
25+
----
1926
|===
2027

2128

@@ -2476,7 +2483,7 @@ postgres=#
24762483
h| 函数名称 h| ts_rewrite
24772484
| 参数数据类型 | query tsquery, select text
24782485
| 函数返回值数据类型 | tsquery
2479-
| 函数含义
2486+
| 函数含义 |
24802487
| 使用举例
24812488
a| postgres=# CREATE TABLE test (col1 tsquery PRIMARY KEY, COL2 tsquery); CREATE TABLE postgres=# INSERT INTO test values ('p','q'); INSERT 0 1 postgres=# SELECT ts_rewrite('r & q'::tsquery, 'SELECT col1,col2 FROM test'); ts_rewrite ------------ 'r' & 'q' (1 row) +
24822489
postgres=#

0 commit comments

Comments
 (0)