Answers for "how to use check constraint in sql so that date is not greater than current date"

SQL
0

sql constraint to check date less than current date

ALTER TABLE yourTable
	ADD CONSTRAINT yourDateTimeColumn CHECK (yourDateTimeColumn < GetDate() );
Posted by: Guest on February-07-2021

Code answers related to "how to use check constraint in sql so that date is not greater than current date"

Code answers related to "SQL"

Browse Popular Code Answers by Language