| | |
Need update query--Remove the coma ","
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2006
Posts: 197
Reputation:
Solved Threads: 5
Hi friends
Thanks for your repaly for all my question..
I need one update query. I have selected the datas are insert with coma ",".
Query
SELECT city
FROM `locations`
WHERE city REGEXP ','
I got the result..
Silver Spring,
Elkins,
PORTLAND,
Baltimore,
I need like this
Silver Spring
Elkins
PORTLAND
Baltimore
I need to remove the "," and restore the values .
Thanks
Vssp
Thanks for your repaly for all my question..
I need one update query. I have selected the datas are insert with coma ",".
Query
SELECT city
FROM `locations`
WHERE city REGEXP ','
I got the result..
Silver Spring,
Elkins,
PORTLAND,
Baltimore,
I need like this
Silver Spring
Elkins
PORTLAND
Baltimore
I need to remove the "," and restore the values .
Thanks
Vssp
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
That's really more of an SQL thing. You may want to try posting there if you don't find your answer here.
It can be done in PHP, probably not as fast, though.
Run your query, parse the result set (Take a look at http://us2.php.net/manual/en/function.stripos.php) and write the update query.
It can be done in PHP, probably not as fast, though.
Run your query, parse the result set (Take a look at http://us2.php.net/manual/en/function.stripos.php) and write the update query.
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
I THINK YIU CAN USE str_replace
increase youe site traffic
http://www.articleboards.com
Running free html asp php jsp xml xhtml j2ee mysql tutorials
http://www.freewebschools.com
Submit your design portfolio and increase your popularity
http://designers-portfolio.com
http://www.articleboards.com
Running free html asp php jsp xml xhtml j2ee mysql tutorials
http://www.freewebschools.com
Submit your design portfolio and increase your popularity
http://designers-portfolio.com
![]() |
Similar Threads
- How can i update a query that have more than 3 tables using adodc in vb? (Visual Basic 4 / 5 / 6)
- UPDATE query not working properly... (PHP)
- System 32 at startup and "dwn"/"down" pop up at startup (Viruses, Spyware and other Nasties)
- Error while trying the update query (ASP)
- This ought to be simple - extra spaces (PHP)
- "MiCr0s0ft.exe", "Microsoftx.exe" & "ns.exe" viruses?Please Help (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Open the exixting pdf file Using PHP
- Next Thread: Mailing List Scripts
| Thread Tools | Search this Thread |
advanced alerts apache api archive array autosuggest beginner binary broken cakephp checkbox class clients cms code cron curl database date display dynamic echo email emptydisplayvalue eregi error execute explodefunction file files folder form forms function functions google hack href htaccess html if...loop image include insert ip javasciptvalidation javascript joomla keywords library limit link login mail matching menu mlm multiple mysql object oop password paypal pdf php phpincludeissue problem query radio random recursion recursive remote script search searchbox server sessions shot smarty sms source space speed sql syntax system table tutorial update upload url validator variable vbulletin video web website youtube





