Search
 
SCRIPT & CODE EXAMPLE
 

SQL

SQL Create Named CHECK Constraint

-- creates a named constraint named amount CK
-- the constraint makes sure that amount is greater than 0
CREATE TABLE Orders (
  order_id INT PRIMARY KEY,
  amount INT,
  CONSTRAINT amountCK CHECK (amount > 0)
);
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql view command does not work - privileges problem 
Sql :: create synonym for dblink in oracle 
Sql :: delete hangfire retries list 
Sql :: oracle max field name length 
Sql :: mysql export data with a where clause 
Sql :: Time difference in hh:mm:ss 
Sql :: turnicate in mysql 
Sql :: download mysql database to excel in android studio 
Sql :: null plus 1 in sql 
Sql :: okta postgresql 
Sql :: creating directory /var/lib/postgresql/data ... initdb: error: could not create directory "/var/lib/postgres/data": Permission denied 
Sql :: oracle repeat_interval 5 minutes 
Sql :: sql statement checker corrector 
Sql :: php mysql set db collation 
Sql :: oracle convert run_duration to number 
Sql :: SQLServerException.makeFromDatabaseError 
Sql :: conditionla silme SQL 
Sql :: Sql testing queries 
Sql :: classement rang mysql 7 
Sql :: SQL DATEADD(date_part, number, date) 
Sql :: add alternate add column sql 
Sql :: create sql server database 
Sql :: start whith system mysql 
Sql :: Sql Cursor: Implicit 
Sql :: how to use mysql_tzinfo_to_sql on windows 
Sql :: mysql grant user privileges to database that has suffix and prefix 
Sql :: mysql make date from 2 column 
Sql :: datagrip go to line 
Sql :: how to check if sql query is correct online 
Sql :: The fetch keyword oracle 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =