摘要:
惨痛的教训: 某次在执行delete时,一时疏忽忘记写where条件了, 1、删除tb_mobile_cust_micromsg中的内容,前提是c_customer这个字段的值与#datamod表中c_userno这个字段的值相等。 delete from tb_mobile_cust_microm 阅读全文
摘要:
1、更新tb_card中c_customer字段的值等于tb_customer表中c_no的值 update tb_card set c_customer=ct.c_no from tb_customer ct where tb_card.c_cardno=ct.c_no 阅读全文