在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1、更新整张表,如果某一行数据的某一列的值为空,那么让他和另一列字段的值相等 UPDATE ot_tgbz set update_day=if(update_day is null,date,update_day);
UPDATE ot_user set xingyun_num=if(xingyun_num > 2,2,xingyun_num);
update shop_goods set thumb= replace (thumb,'https://www.ogeek.net/','') where thumb like '%https://www.ogeek.net/%';
$map= " CAST( `UE_account` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%' OR CAST( `UE_accName` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%' OR CAST( `UE_truename` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%' OR CAST( `UE_phone` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%'"; 以上这篇mysql的sql语句特殊处理语句总结(必看)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持极客世界。 |
请发表评论