This is the table i had created
CREATE TABLE dob (name VARCHAR(20),date VARCHAR(100));
This is the data i had loaded in to the table dob
uttej,2017-08-22
venki,1997-07-15
porna,1995-05-11
pp,1997-07-07
This is the query i had written but there is an error
delimiter |
CREATE TRIGGER test after update on dob
for each row
begin
update dob where date = SELECT NOW();
end;
|