Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

what does $${}$$::json in Postgres mean?

data jsonb NOT NULL DEFAULT $${}$$::jsonb what does $${}$$ on table creation? Can’t find anything on the internet. Thanks

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

In Postgres $$ (or $anything$) is an alternative for a single quotation mark (') to enclose character literals. In other words, $${}$$ is equivalent to '{}'.

It’s commonly used to quote strings that themselves might contain single quotation marks, or strings inside dynamic SQL that is already enclosed in single quotes.

Reference

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading