<select >
  	INSERT INTO tenant_detail
    (tenant_id,province_id,city_id,zone_id,address,marry,education,political_visage,
    	industry,company_name,photo_img,remark,province_name,city_name,zone_name,gmt_create,created_by,gmt_last_update,last_updated_by) 
      VALUES 
     (#{tenantId},#{provinceId},#{cityId},#{zoneId},#{address},#{marry},#{education},#{politicalVisage},
     	#{industry},#{companyName},#{photoImg},#{remark},#{provinceName},#{cityName},#{zoneName},SYSDATE(),#{createdBy},SYSDATE(),#{lastUpdatedBy})
     ON DUPLICATE KEY 
	 UPDATE 
	province_id=#{provinceId},
        city_id=#{cityId},
        zone_id=#{zoneId},
        address=#{address},
        marry=#{marry},
        education=#{education},
        political_visage=#{politicalVisage},
        industry=#{industry},
        company_name=#{companyName},
        photo_img=#{photoImg},
        remark=#{remark},
        province_name=#{provinceName},
      	city_name=#{cityName},
      	zone_name=#{zoneName},
        gmt_last_update=SYSDATE(),
        last_updated_by=#{lastUpdatedBy}
  </select>

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-01-16
  • 2021-09-02
  • 2022-12-23
  • 2021-08-30
  • 2022-03-03
猜你喜欢
  • 2022-01-04
  • 2021-06-18
  • 2022-12-23
  • 2022-02-24
  • 2021-05-31
  • 2022-01-07
  • 2021-06-02
相关资源
相似解决方案