Fonctions permettant de manipuler les données dans PostgreSQL
Brian Piccolo
Sr. Director, Digital Strategy
SELECT title
FROM film
WHERE title LIKE 'ELF%';
+----------------------+
| title |
+----------------------+
| ELF PARTY |
+----------------------+
SELECT title
FROM film
WHERE title LIKE '%ELF';
+----------------------+
| title |
+----------------------+
| ENCINO ELF |
| GHOSTBUSTERS ELF |
+----------------------+
SELECT title
FROM film
WHERE title LIKE '%elf%';
+----------------------+
| title |
+----------------------+
SELECT title, description
FROM film
WHERE to_tsvector(title) @@ to_tsquery('elf');
+----------------------+
| title |
+----------------------+
| ELF PARTY |
| ENCINO ELF |
| GHOSTBUSTERS ELF |
+----------------------+
La recherche en texte intégral permet d'interroger vos données textuelles en langage naturel.
Stemmatisation
Fautes d'orthographe
Classement
SELECT title, description
FROM film
WHERE to_tsvector(title) @@ to_tsquery('elf');
Fonctions permettant de manipuler les données dans PostgreSQL