Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not upper, not lower, but a bit of both? 1

Status
Not open for further replies.

kupe

Technical User
Sep 23, 2002
376
Is there a sister function upper() and lower() - or a way to - to have text appear with the first capitalised and the rest lc, please, experts?


 
You could try using both:
[tt]
CONCAT(
UPPER(SUBSTRING(fld1,1,1)),
LOWER(SUBSTRING(fld1,2))
)
[/tt]
 
Cheers, Tony, much obliged.
 
Yes, it's a pity, Eric, thanks.
 
Hi Tony

I tried that last night, but it returned everything in lc. I'm sure there's a function I've often used in Access (can't recall it for the moment though). Odd there's not something similar in amazing (with respects to Eric Brunson)mysql. Cheers
paul
 
That should work OK. It works for me, anyway. Are you sure you typed it as shown?
 
As they say, sure I'm sure, but I will try it again tonight if you feel that confident. Because I use the command prompt mostly, it was all on one long, nested line. But mysql responded to it. As I say, everything in lc, though. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top