Skip to content
Advertisement

Tag: operators

Compare two arrays in PostgreSQL

I have a table in postgres with a value column that contains string arrays. My objective is to find all arrays that contain any of the following strings: {‘cat’, ‘dog’} The following query uses ANY() to check if ‘dog’ is equal to any of the items in each array and will correctly return rows 1 and 3: I am trying

What is this operator in MySQL?

I’m working on code written by a previous developer and in a query it says, What does <=> mean in this query? Is it something equal to =? Or is it a syntax error? But it is not showing any errors or exceptions. I already know that <> = != in MySQL. Answer TL;DR It’s the NULL safe equal operator.

Advertisement