Mysql Update

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

NetworkTown.Net

Account Closed
Impact
2
Hi

Dose any one know of a script that can do the following:

When i type in a form .flv and submit the form will update all .wmv in my database to .flv is it possible?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
The sql is:
UPDATE {TABLE_NAME} SET {FIELD_NAME} = REPLACE ({FIELD_NAME}, '.wmv', '.flv' )
 
0
Close
Ok so if my DB name is arcade and the table is games it will look like this:

UPDATE {user_arcade} SET {games} = REPLACE ({games}, '.wmv', '.flv' )

Is that correct?
 
0
Close
minus the braces.

UPDATE user_arcade SET games = REPLACE (games, '.wmv', '.flv' )
 
0
Close
Thanks i will test it in abit.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back