mysql update with replace
รูปแบบ update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]'); กรณีนี้ ผมจะ update ข้อมูล ใน ตาราง tbl_district โดยทำการแทนที่ * ด้วยค่าว่างนะครับ คำสั่งจะได้แบบนี้ UPDATE tbl_district set district_name = replace(district_nam [...]
-
ชายตั้ม 2017-03-06 16:15:50
- 4,265