SSM框架中的Mapper.xml文件中的增、删、改、查等操作

 1 
 2 
 3 
 4 
 9 
10     
18     
19         
20         
21         
22         
23         
24         
25         
26     
27     
29     
30         userid,loginname,loginpass,username,upower,birthday,sex
31     
32     
35     
36     
43     
44     
45     
49     
50     
51     
56     
57     
58      
59          update userinfo 
60          set loginname=#{loginname},loginpass=#{loginpass},username=#{username},
61              upower=#{upower},birthday=#{birthday},sex=#{sex}
62          where userid=#{userid}     
63      
64      
65     
66     
67         insert into userinfo() 
68         values
69         (#{userid},#{loginname},#{loginpass},#{username},#{upower},#{birthday},#{sex})
70     
71         
72     
73     
74         delete from userinfo where userid=#{userid}
75     
76     
77     
78     
94 

后续-----

转载于:https://www.cnblogs.com/dqh94/p/7404100.html

你可能感兴趣的:(SSM框架中的Mapper.xml文件中的增、删、改、查等操作)