ZengCode.Com (The Thai Php Framework)  


Home   Download   Manual   About us    

Facebook   


MAIN MENU
เขียนโปรแกรมบน iPhone ด้วย MonoTouch
News
Php Tips
Ubuntu
Spring+Strut+Hibernate
Android Programming
Design Pattern By PHP
C# Design Pattern
Linux Quick Tips
C# Tips & Technique
C# using Linq น่าใช้จริงๆ
Java & JavaScript Tips
MAVEN
Database & SQL
ZengCode Framework Guide
Mac OSx
Zeng Code Code
Programming
IPhone (Tips and Trick)

Download เอกสารที่น่าสนใจ

     การใช้ Replace function ใน MySQL mysql search replace function   (2009-09-04)

บางครั้งเราต้องการแทนคำต่างๆ ใน Table ของเราใน MySQL ก็สามารถทำได้ด้วย Function Replace ที่ Build in มาในตัว MySQL อยู่แล้ว โดยใช้คำสั่งดังนี้

update table_name set field_name = replace(field_name, 'คำที่ค้นหา','คำที่ต้องการแทนที่');

แค่นี้ก็เรียบร้อยแล้วครับ


Comment
Name
Comment
Security CodeCAPTCHA Image

web hit counter

This page took 0.050046 seconds to load.