mysql插入或更新

现有user表,userId为用户id,作为数据表user的主键:html   因为userId不能够重复,而这里userId直接做为主键。为防止并发操做,插入语句能够这样设计:不存在userId则插入,不然更新:并发 <!--修改或更新--> <insert id="insertOrUpdate" parameterType="com.iflytek.edu.zx.activitity.dto
相关文章
相关标签/搜索