Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6668597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:03:31+00:00 2026-05-26T03:03:31+00:00

i have a table with some email fields. Some email records are in capital

  • 0

i have a table with some email fields. Some email records are in capital letters and some in camel case . Now i have to convert all the emails with capital letters to small letters. I can do that with a PHP script by fetching every record then checking it for any capital letters and then converting it to lowercase if any capital letter is found.

Is there any way in Mysql with which we can get only those records that contains capital letters in them and not all?? This way i will be spared by executing each and every record. Iam looking for a way in Mysql with which we can check for capital letters in a record in query itself . Any suggestions??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:03:31+00:00Added an answer on May 26, 2026 at 3:03 am

    Change the collation to a case-sensitive collation.

    But really, how long will this query take?

    update `table` set email = lower(email)
    

    Edit: update only records containing not only lower case emails:

    update 
        `table`
    set
        email = lower(email) 
    where
        email <> lower(email)
    collate
        latin1_general_cs
    

    You can test this by selecting them first:

    select 
        *
    from
        `table`
    where
        email <> lower(email)
    collate
        latin1_general_cs
    limit 
        10
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with three fields, FirstName, LastName and Email. Here's some dummy
I have a requirement to export some data from a table (not all fields
I have table with some fields that the value will be 1 0. This
I have a table that contains some blob fields that I don't want to
I want to check some string before sending an email. I have 3 fields:
I have two mysql table Table 1 id email other fields Table 2 id
I have some table: table ASK with idask table PREFERENCES with idpref , fk_idask
I have some table structure: <tr class=row-2><tr> <tr class=row-3>..<tr> <tr class=row-4>..<tr> <tr class=row-5>..<tr> <tr
I have a table containing some names and their associated ID, along with a
I have a table that saves some account limits like users. For most rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.