SQL untuk tanggal lebih besar dari
SELECT * FROM ATable WHERE DateField >= Convert(datetime, '2021-12-17 18:25:29')
Victorious Vole
SELECT * FROM ATable WHERE DateField >= Convert(datetime, '2021-12-17 18:25:29')
alter table foo
add constraint check_dates check (from_date < to_date);
ALTER TABLE yourTable
ADD CONSTRAINT yourDateTimeColumn CHECK (yourDateTimeColumn < GetDate() );