sql="select count(pc_id) from pc_info" set totle6=conn.execute(sql) totle6=totle6(0) Õâ¸öÊÇͳ¼Æ¸öÈË»áÔ±µÄÈËÊý¡£Çë½Ìһϣ¬Õâ¸ötotle6(0)ÊÇʲôÒâ˼£¿conn.executeÄܵõ½count(pc_id)µÄÖµ£¿
Èç¹ûÓжà¸ö²éѯ×ֶΣ¬±ÈÈç¡£"select id,name,content,yeaes from user",ÄÇô£¬rs(0)¡¢rs(1)¡¢rs(2),,,ÊÇ·ñÒÀ´ÎΪ¸÷×ֶεÄÖµ£¿ ÊÇÊÇÊÇÊÇÊÇÊÇÊÇÊÇÊÇÊÇÊÇÊÇ Ã²ËÆÈç´Ë£¡£¡£¡µÈ´ý£¡£¿ sql="select count(pc_id) from pc_info" set totle6=conn.execute(sql) totle6=totle6(0) ================== ÒÔÉÏÈýÐÐû×öÈκÎÅжϣ¬¿ÉÒÔÖ±½Ó¼ò»¯£º totle6=conn.execute("select count(pc_id) from pc_info")(0)&"" if err or totle6="" then totle6=0 ------------------------ ÆÕͨµÄд·¨¾ÍÊÇ£º
sql="select count(pc_id),sum(ÆäËû×Ö¶Î) from pc_info" set rs=conn.execute(sql) if not rs.eof then totle6=rs(0) totle7=rs(1) else totle6=0 totle7=0 end if set rs=nothing
SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......