I am using postgreSQL. I have a column that:
NOT NULL
However when I want to insert a row with an empty string as like:
\'\' >
Add a constraint to column definition. For example something like:
ads character varying(60) NOT NULL CHECK (ads <> '')
For more, see http://www.postgresql.org/docs/current/static/ddl-constraints.html