update语句




/**
* 编辑学员信息
* 姓名 常用邮箱 email 性别sex 婚恋状态 marry 生日birthday 血型blood 家乡 居住地 QQ MSN
*
* @param int
* @return Boolean
*/

public boolean updateSpacefieldByUid(String username,
String email,
int sex,
int marry,
String blood,
String birthcity ,
String birthprovince ,
String resideprovince ,
String residecity ,
String qq ,
String msn ,
int birthday ,
int birthyear ,
int birthmonth ,
int uid) {
String sql = "update uchome_spacefield spacefield, uchome_member member set username='"
+ username
+ "',member.email='"
+ email
+ "',spacefield.email='"
+ email
+ "',sex='"
+ sex
+ "',marry='"
+ marry
+ "',blood='"
+ blood
+ "',birthday ='"
+ birthday
+ "',birthmonth='"
+ birthmonth
+ "',birthyear ='"
+ birthyear
+ "',birthcity='"
+ birthcity
+ "',birthprovince='"
+ birthprovince
+ "',resideprovince='"
+ resideprovince
+ "',residecity='"
+ residecity
+ "',qq='"
+ qq
+ "',msn='"
+ msn
+ "'where member.uid="
+ uid
+ " and spacefield.uid="
+ uid + "";

getJdbcTemplate().execute(sql);

return true;
}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值