mysql中删除含有某字段的数据的步骤如下:
我们需要准备的材料分别是:mysql查询器。
1、首先,打开mysql查询器,连接上相应的mysql连接,这里以test表(5条数据)删除name中含“gle”字段为例。
2、点击“查询”按钮,输入:delete from test where `name` like "%gle%";。点击“运行”按钮,会提示有2行受影响。
3、此时再打开表数据会发现,包含“gle”字段的两条数据记录被删除了。
写一个sql语句就行了啊!如:delete from f_1 where x_1 like '%123com%';
像这样就可以了啊
删除:delete from f_1 where x_1 like '%123.com%';
替换: UPDATE f_1 SET x_1=REPLACE(`x_1`,'123.com','!!!!!') WHERE INSTR(`x_1`,'123.com')>0;
ALTER TABLE `tableName` drop COLUMN `columeName`;
delete from f_1 where x_1 like '%123.com%'