Link to home
Start Free TrialLog in
Avatar of jameskane
jameskane

asked on

Setting YEAR in MYSQL table

I am trying to set a column current_yr to show the current year date by default  ... eg 2015 .

Attached is an image of the settings I am using.  This setting however only results in default 0000 appearing in all rows of the table.

Can someone give me the correct setting to achieve this ?

many thanks

james

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jameskane
jameskane

ASKER

many thanks Dave !!
You're welcome!