MySQL Forums
Forum List  »  Newbie

Re: date format and sort questions
Posted by: Rick James
Date: June 08, 2009 08:42PM

See this for a lecture on not splitting datetime into multiple columns:
http://forums.mysql.com/read.php?10,266034,266277

ALTER TABLE tbl DROP COLUMN d;
ALTER TABLE tbl DROP COLUMN m;
ALTER TABLE tbl DROP COLUMN y;
will run 3x faster if you do:
ALTER TABLE tbl
DROP COLUMN d,
DROP COLUMN m,
DROP COLUMN y;

Options: ReplyQuote


Subject
Written By
Posted
Re: date format and sort questions
June 08, 2009 08:42PM


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.