当前位置 : 主页 > 编程语言 > c++ >

mybatis的动态sql实现

来源:互联网 收集:自由互联 发布时间:2021-07-03
gistfile1.txt u.*,r.id as "rinfo.id",r.name as "rinfo.name" select from userinfo u,roles r where u.rolesid=r.id select * from userinfo where id=#{id} select * from userinfo where name=#{a} and pwd=#{pwd} select seq2.nextval from dual insert
gistfile1.txt
 


 

 

  
	
   
    
    
    
    
    
     
     
    
  

	
  
	
  
    u.*,r.id as "rinfo.id",r.name as "rinfo.name" 
  
	
  
	
  
	
  
	
  
	
  
	
	
  
	
	
  
	
  
	
	
  
	
  
	
   
   
     select seq2.nextval from dual 
    insert into userinfo values(#{id},#{name},#{pwd},#{rolesid}) 
  
	
	
	
  
	
	
  
    update userinfo
    
    
      name=#{name}, 
     
    
      pwd=#{pwd}, 
     
    
      roleid=#{roleid}, 
     
    where id=0 
  

 
网友评论