SQL点点滴滴_UPDATE小计

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

posted @ 2016-06-16 19:20  卡卡不卡  阅读(154)  评论(0编辑  收藏  举报