VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. Check a column does not equal another column in SQL
Programming Blog

Atom/RSS Feed

sql

Check a column does not equal another column in SQL

sql

To check that a column does not equal another column in SQL you can do the following

Example check

ALTER TABLE table_name
    ADD CONSTRAINT contraint_name
        CHECK (column_a <> column_b);
Join my mailing list