asp跨表鏈接求和算法概要
發(fā)布人:lu , 瀏覽次數(shù):142 , 發(fā)布時(shí)間:2018-09-02 23:47
很久沒(méi)寫(xiě)程序了
其實(shí)寫(xiě)寫(xiě)程序挺好的,雖然asp已經(jīng)很LOU了,但能解決問(wèn)題就是好工具
今天寫(xiě)了一個(gè)asp跨表鏈接求和算法概要
其實(shí)挺簡(jiǎn)單,在這里記錄下,以后還能用到
set rsk=conn.execute("select sum(jiage) as zong from xuanze where kaipiao=1 and mingxiid in (select id from dingdanmingxi where dingdanid="&request("dingdanmingxiid") &")")
還有一個(gè),
讀取一個(gè)表在另一表總ID數(shù)量
用到 in 算法
set quer=conn.execute("select count(*) from xuanze where queren=1 and mingxiid in (select id from dingdanmingxi where dingdanid="&request("dingdanmingxiid") &")")
好了 夜深了 就到這里吧