Cześć,
Mam problem z którym nie umiem sobie poradzić. Mianowicie potrzebuję mieć 2 pola tabeli:
-update_time
-created_time
Do update_time dodałem "on update current_timestamp". Następnie do created_time dałem jako wartość domyślną current_timestamp, próbując zapisać zmiany wywala mi :
#1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Można jakoś temu zaradzić czy dodawać po prostu created_time przy insercie?