请问:table1表中的number记录了table2中的记录数,当table2加删记录时, 怎样用SQL语句更新这个numbertable1表中的number记录了table2中的记录数,当table2加删记录时, 怎样用SQL语句更新这个number[解决办法]使用触发器。[解决办法]update table1 set number = (select count(*) from table2);