Sabtu, 21 Agustus 2021

PostgreSQL Cari text tanpa peduli besar kecil dan posisi


  • Select the title and description columns from the film table.
  • Perform a full-text search on the title column for the word elf.
-- Select the title and description
SELECT title, description
FROM film
-- Convert the title to a tsvector and match it against the tsquery 
WHERE to_tsvector(title) @@ to_tsquery('elf');

GHOSTBUSTERS ELFA Thoughtful Epistle of a Dog And a Feminist who must Chase a Composer in Berlin
ELF MURDERA Action-Packed Story of a Frisbee And a Woman who must Reach a Girl in An Abandoned Mine Shaft
ENCINO ELFA Astounding Drama of a Feminist And a Teacher who must Confront a Husband in A Baloon

Tidak ada komentar:

Posting Komentar


Related Posts Plugin for WordPress, Blogger...


Do it Yourself (41) Sepeda (30) soluna (30) Motorcycle (29) GoPro (28) Roda4 (23) Jual (20) Travelling (19) nouvo (19) jupiter (14) Jasa (10) mutasi (10) office (9) King (8) vw (6) Dad (5) gokart (3) Atoz (2) tamiya (2) balance bike (1) strider (1)