update  table1 set a1=(select count(*) from table2) where a2='1'SQL中用单引号。