ตัดหรือแทนที่ข้อมูลด้วยคำสั่ง Replace ของ MySQL

SELECT REPLACE( FieldName ,'คำที่ค้นหา','คำที่เอามาแทน' ) AS NewData FROM TableName

หรือ

UPDATE  TableName  SET  FieldName = REPLACE( FieldName ,'คำที่ค้นหา','คำที่เอามาแทน' )

คิดว่ามีประโยชน์เมื่อถึงเวลาจำเป็น

You can leave a response, or trackback from your own site. Responses are currently closed, but you can trackback from your own site. You can skip to the end and leave a response. Pinging is currently not allowed. Both comments and pings are currently closed.
Powered by WordPress | Shop Free T-Mobile Phones Online | Thanks to Verizon Phones without Contract, MMORPG Games and Sell Car