Mybatis--删除

1.删除一条记录

      delete from t_event where eventId = #{eventId,jdbcType=INTEGER};


2.批量删除数据
   
    	delete from t_event where eventId in
    	#{item};
	delete from t_event_prop where eventId in
    	#{item};
 

3.清空表中所有数据

	truncate table t_event; 




你可能感兴趣的:(MySQL学习笔记)