Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi to all
I have created data base with tables, and one table column contains Date I need to change all date for example 2011090112 to 2011090100 I have data for several month, how can change only the last 2 digits from 12 to 00 for all rows.
thanks in advance..
Ok...did you try to look up a solution, or read the MySQL documentation on the update command? This can be found on the MySQL forums:
update table set field = REPLACE(field, 'string', 'anothervalue') WHERE field LIKE '%string%';