5.2. Equality
Prev | Up | Chapter 5. Operators | Home | Next

## 5.2. Equality #

All data types of pgSphere have equality operators. The equality operator is as in `SQL` `=`. Furthermore, there are two valid negators to indicate that two objects are not equal: `!=` and `<>`.

Example 5.2. Equality of two spherical points

    sql> SELECT spoint '(10d,20d)' = spoint '(370d,20d)' ;
     test
    ------
     t
    (1 row)

Prev | Up | Next
5.1. Casting | Home | 5.3. Contain and overlap