Re: change calendar type
Posted by:
Rick James
Date: December 20, 2011 01:57PM
Sorry, you are on your own.
http://dev.mysql.com/doc/refman/5.1/en/mysql-calendar.html
Plan A: Write a UDF (User Defined Function). This is not trivial.
Plan B: Write a Stored Function.
Plan C: Do it in your application code.
Plan D: Build a lookup table to map between DATE (Gregorian) and VARCHAR(10) (SHamsi). Have two indexes so you can go either way. JOIN to this table as needed.
Subject
Views
Written By
Posted
7254
December 18, 2011 11:47PM
Re: change calendar type
3153
December 20, 2011 01:57PM
2438
January 03, 2012 05:17AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.