11.7. 表示式索引
SELECT * FROM test1 WHERE lower(col1) = 'value';CREATE INDEX test1_lower_col1_idx ON test1 (lower(col1));SELECT * FROM people WHERE (first_name || ' ' || last_name) = 'John Smith';CREATE INDEX people_names ON people ((first_name || ' ' || last_name));Last updated
Was this helpful?