I get this problem with applying now() to timestamp field. It just doesn't automatically fill in the field with the current time. I tried both now() and NOW() and also current_time, doesn't work either. What can be the problem? What other values I can insert into the field in order to get the current time?
If you want to edit data directly in the Result Grid, for functions add "\func" before that function. In this case try this:
\func now()
it will be now() in the query you will see in Apply SQL Script to Database window.
Use now() in query without quotes:
Insert into blog.task(body,created_at ,updated_at)values('some values',now(),now());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With