Skip to content

Instantly share code, notes, and snippets.

@JorgeMichelena
Created September 19, 2022 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeMichelena/321643c644b2028b3787d769f4f0f31c to your computer and use it in GitHub Desktop.
Save JorgeMichelena/321643c644b2028b3787d769f4f0f31c to your computer and use it in GitHub Desktop.
SELECT "targets_target"."id", "targets_target"."user_id",
...
"targets_target"."created_at", "targets_target"."updated_at"
FROM "targets_target"
WHERE ("targets_target"."topic" = \'sports\' OR
UPPER("targets_target"."title"::text) LIKE UPPER(\'%sport%\'))
LIMIT 21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment