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 7963289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:34:37+00:00 2026-06-04T05:34:37+00:00

I have a large mysql table and I just noticed an issue when trying

  • 0

I have a large mysql table and I just noticed an issue when trying to query the database. It seems like the ENTER key was pressed when some columns were inserted. For example, I can perform the following search:

$query = mysql_query("SELECT * FROM table WHERE color= 'red'");

Now, I may have 20 rows where the color is red but less are showing. When I use phpmyadmin to edit the lines not showing in the search results, I notice the color column says red but has a line break so that the cursor is on a line underneath the word “red”. If I use the backspace key once to erase the line then save the row, it now appears in my query results.

My database is quite large, so I was wondering if there was any way to search the database where color has any “extra characters” on the end of the value, and remove those extra characters.

  • 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-06-04T05:34:38+00:00Added an answer on June 4, 2026 at 5:34 am

    TRIM only removes spaces by default. The following will remove the linebreak:

    UPDATE table SET color = TRIM(TRAILING '\n' FROM color)
    

    Ref: MySQL Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a large mysql database table in which one column contains values ranging
I have a MySQL database with a fairly large table where the products are.
I have a large MySQL table (about 750 million rows) and I just want
I have a large database in MySQL and it is about 4 Gb, still
I have large database table, approximately 5GB, now I wan to getCurrentSnapshot of Database
I'm querying a very large activity log in a MySQL database, trying to figure
I have a very large table in MySQL. I'm using a CHAR(32) field which
In MySQL, I have a simple "SELECT * FROM foo" query. I would like
I have a mysql database table that will store locations for buildings and events
We have a very large (10million+) row table stored in MySql using the InnoDB

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.