更新 部署PostGIS.md
This commit is contained in:
@@ -146,7 +146,9 @@ CREATE TABLE articles (
|
|||||||
-- 生成列:自动维护 tsvector,避免每次查询都计算,提高性能
|
-- 生成列:自动维护 tsvector,避免每次查询都计算,提高性能
|
||||||
content_tsvector TSVECTOR GENERATED ALWAYS AS (to_tsvector('chinese_mix', content)) STORED
|
content_tsvector TSVECTOR GENERATED ALWAYS AS (to_tsvector('chinese_mix', content)) STORED
|
||||||
);
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
-- 插入一些混合数据
|
-- 插入一些混合数据
|
||||||
INSERT INTO articles (title, content) VALUES
|
INSERT INTO articles (title, content) VALUES
|
||||||
('AI 技术展望', '人工智能 (AI) 正在改变世界,PostgreSQL 是存储这些数据的首选数据库。'),
|
('AI 技术展望', '人工智能 (AI) 正在改变世界,PostgreSQL 是存储这些数据的首选数据库。'),
|
||||||
|
|||||||
Reference in New Issue
Block a user