CREATE DEFINER=`root`@`localhost` TRIGGER `application_BEFORE_INSERT` BEFORE INSERT ON `application` FOR EACH ROW BEGIN
if(new.date<2021-09-05)
then update application
set isbn=new.isbn,student_id=new.student_id,quantity=new.quantity,
date=new.date;
else signal sqlstate '42S22' set message_text='not on time';
end if;
END
判断输入的时间在截止日期之前,但是写了下面代码之后不管输入什么时间都显示“not on time”,或者希望大佬们帮忙改一改,能够直接生成当前日期,判断当前日期是否在截止时间范围内?