Last active
May 23, 2017 17:02
-
-
Save faulker/00e304b5e4d1128b7b53a0ecee22902e to your computer and use it in GitHub Desktop.
Sql Tricks/Hacks/Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Checks to see if 'prealgebra' exists int he json array data->'series' | |
SELECT * FROM table WHERE jsonb_exists(data -> 'series', 'prealgebra'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment