将身份证号码为12345678910的记录在两个表中的申请状态均改为07
这个怎么写啊

解决方案 »

  1.   

    update table1 set status='07' where id='12345678910';
    update table2 set status='07' where id='12345678910';
      

  2.   

    假设你的2个表名为 t1,t2   状态位的字段叫 staute
    身份证号的字段叫 shupdate t1,t2
    set t1.staute=07,t2.staute=07
    where t2.id=12345678910 and t1.id=12345678910
      

  3.   

    update t1 set status='07' where 身份证号='12345678910';
    update t2 set status='07' where 身份证号='12345678910';