Can I set now() function as a default value for a field while adding a new entry?
There are 2 solutions.
1. Use on_insert event handler and write your own insert query that have now().
2. Use current_timestamp default value: http://stackoverflow.com/a/168832/385377
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?