asp連線sql資料庫的問題

時間 2022-11-28 22:30:25

1樓:匿名使用者

需要兩個頁面

前台輸入頁:

後台頁:

xm=trim(request("xm"))接著就是連線資料庫查詢

然後就是把記錄集的內容一條一條列印

<% for i=1 to rs.recordcountif rs.eof then

exit for

end if

%><%=rs("pwd")%>

<%rs.movenext

next

end if

%>大體就是這樣了 具體自已加進去

2樓:匿名使用者

<%dim ac,sql,xm

ac=request("ac")

if ac="find" then

xm=request.form("xm")xm=replace(trim(xm),"'","") '過濾單引號

set rs=conn.execute(sql)response.write(rs(0))rs.close

set rs=nothing

end if

%>

ASP問題?SQL語法問題,SQL資料庫和ACC資料庫之間的不同之處

sqlnotice select from abl notice order if systemdatabasetype sql then sqlnotice sqlnotice by elite desc noticeid desc elseif systemdatabasetype access...

sql資料庫問題,SQL資料庫問題?

既然用了左連線,那麼a表中極有可能會出現空值,而a.dept 20080203 and a.dept 20080204 and a.status o 卻又將空值排除在外了 我想知道的是,這個外連線究竟起什麼作用呢?看不大出來。有點兒覺得在 left join tn stock as c where ...

asp 資料庫連線

dim sqldatabasename,sqlpassword,sqlusername,sqllocalname,connstr,conn sqldatabasename sql資料庫名 sqlusername sql資料庫使用者名稱 sqlpassword sql資料庫使用者密碼 sqllocal...

ASP連線SQL資料庫出現無法登入錯誤,急

sql不想access,sql不是桌面級的資料庫。當你要訪問sql資料庫時,你要通過資料庫伺服器來進行連線,當然你的資料庫服務必須開著。與sql連線語句如下 set conn server.createobject adodb.connetion conn.open provider oledbsq...

資料庫sql語句四表連線,資料庫SQL語句 四表連線

1 如圖所示,開啟了sql server 2008,並建立好了資料庫。然後看當前是否是在自己要建立表的資料庫中。2 如圖,選中好lx資料庫,練習資料庫。3 或者在新建視窗中輸入 use lx,然後選中後執行它,一樣進入到lx資料庫中。如圖所示。4 之前有教過不用 設計資料庫的表,這裡只講用語句建立表...