Unstoppable Domains โ€” Get your daily AI drops report

MySQL - Command to delete blanks

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
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.
GoDaddyGoDaddy
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
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back