| | |
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
Views: 2684 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars image include insert integration ip java javascript joomla jquery limit link links login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote replace script search select server session sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





