Is there any way to increase a table field named month every month..or I should say to the latest month…Just need to update the month value..i.e. In, it should be 1
march 3
July 7
etc.
Help me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Closest you’ll get without manually inserting idate(‘m’) with every new record and without using fancy mysql… is by using mysql default TIMESTAMP field. Check this out:
http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html
But this a date so you’ll need to use MONTH(
Field) to get the month.