mybatis的增删改查动态sql语句

虽然可以看文档来操作,但是还是记点

查询




	

        
	
		
		
		
	


	
	
	
		update students 
		
			
				students_name = #{name},
			
			
				students_sal = #{sal},			
			
		
		where students_id = #{id}
	

		delete from students where students_id in
		
		
			#{ids}
		
	

	
		
		
			
				students_id,
			
			
				students_name,
			
			
				students_sal,
			
		
	
	
	
	
	
		
		
			
				#{id},
			
			
				#{name},
			
			
				#{sal},
			
		
	
	
	
	
		insert into students() values()
	






	

你可能感兴趣的:(mybatis)