`
张玉龙
  • 浏览: 723260 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论

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;
	}












分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics