Solved

how do i Update all rows from lowercase to uppercase

Posted on 2004-03-20
2
5,380 Views
Last Modified: 2012-06-21
Hi,

I had previouslly made a db with two columns, uid, and sname.  sname is currently all lowercase, but i need them now all uppercase. is there a way in mysql console to do this massive update easily?  

i *rather* not use a php strtoupper in the echo, but i guess i can make a loop that does the update for me?
0
Comment
Question by:weinrj
2 Comments
 
LVL 6

Accepted Solution

by:
vanekl earned 50 total points
ID: 10641479
update yourtable set sname = UPPER(sname);
0
 

Author Comment

by:weinrj
ID: 10641515
Thanks!  I looked at google and found nothing, little did i expect it was that easy *blushes*
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now