NameSilo

MySQL - Command to delete blanks

Spaceship Spaceship
Watch

freeflow

Established Member
Impact
13
How can I delete all blank spaces before and after all entries
in a specific column in a database.

Thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
0
•••
Code:
UPDATE [table] SET [field]=TRIM([field])
 
0
•••
If you already have the data in the tables then the following sql command will remove the speaces

UPDATE TABLE_NAME SET colum_name = trim(column_name)

oops too late sdsinc just posted near enough the same thing.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back