Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the '@>' symbol mean in postgresql?

I'm working on a project that uses a PostgreSQL database.

There's a few locations in the project which build queries like this:

query += " AND " + String + " @> " + String;

I'm not familiar with the @> symbol, and neither is anyone currently working on the project. Also googling it doesn't work, presumably as it's an odd symbol.

Also, I'm not sure if this symbol is a postgresql thing or a sql thing.

P.S. The application in written in java.

like image 490
Liam Ferris Avatar asked Sep 03 '25 15:09

Liam Ferris


1 Answers

It's "contains".

If the column is array and use @> the column should contain the value.

More here: https://www.postgresql.org/docs/current/static/functions-array.html


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!