將資料中的所有空格移除-使用REPLACE來替換資料
SQL語法-將`order`表中的`products`欄位空格’ ‘以空”替代
UPDATE `order` SET `products`=REPLACE(`products`,’ ‘,”);
SQL語法-將`purchase`表中的`products`欄位空格’ ‘以空”替代
UPDATE `purchase` SET `products`=REPLACE(`products`,’ ‘,”);

發佈留言

Your email address will not be published. Required fields are marked *