ibatis批量插入、修改、删除


		
		
		
		
		
	


批量插入

	
		insert into files (fileID,title,brief,content,url) values
		
			(#files[].fileId#,#files[].title#,#files[].brief#,#files[].content#,#files[].url#)
		
	

批量删除


	 
		delete from files
		
			fileId = #fileIds[]#
		
	 

	
	 
		delete from files where fileId in
		
			#fileIds[]#
		
	 
	

批量修改


		update files set title = #files.title# where fileId in
		
			#fileIds[]#
		
	


注意:如果使用的List只是Map的属性,请用property

你可能感兴趣的:(mybatis)