1.增加(insesrt)
2.修改(update)
3.查询(select)
4.删除(delete)
5.批量替换表内容(replact)
语句: update 表名 set 字段名 = REPLACE(字段名, ‘被替换的内容’, ‘替换的内容’) 语句中的两个字段名是统一的
例句 UPDATE sp_goods_common
SET goods_body = REPLACE(goods_body , ‘www.qdkjt.com’, ‘tdx.ftosc.com’)
6.修复表,不建议使用(repair)
出现数据库较大操作失误,导致数据表误删
REPAIR TABLE azhs_nucleic;
7.查询区分大小写 (binary)
where binary idcard_copy like "%x%" 搜查小写
where binary idcard_copy like "%X%" 搜查大写
8.拼接两个字段(concat)
update grsv_toilet set lon_lat = concat(lang,',',lat)