count1 = conn.execute("select count(1) from nd_shoptag where tag="&id)
count2 = conn.execute("select count(1) from nd_quan where tag="&id)
count3 = conn.execute("select count(1) from nd_species where tag="&id)
conn.execute("update nd_species set f_shoptag="&count1&",f_quan="&count2&",f_species="&count3&" where id="&id)这是asp代码
统计总数
计算和更新能放在一起吗
count2 = conn.execute("select count(1) from nd_quan where tag="&id)
count3 = conn.execute("select count(1) from nd_species where tag="&id)
conn.execute("update nd_species set f_shoptag="&count1&",f_quan="&count2&",f_species="&count3&" where id="&id)这是asp代码
统计总数
计算和更新能放在一起吗
f_quan=(select COUNT(1) from nd_quan where tag=你传过来的id),
f_species=(select COUNT(1) from nd_specie where tag=你传过来的id)
where id=你传过来的id