I am trying to alter a table to change one of my column values to datediff()
but I keep getting an error and I don't see where my issue is. Here is my code
alter table bids
modify column 'timeLeft' datediff(curdate(),'dueDate');
I am trying to alter a table to change one of my column values to datediff()
but I keep getting an error and I don't see where my issue is. Here is my code
alter table bids
modify column 'timeLeft' datediff(curdate(),'dueDate');
if you are trying to change values you should not be using alter table you should be using UPDATE