|
|
| ASP中是如何使用存储过程的! |
| 作者:佚名 来源:不详 发布时间:2006-5-9 16:51:13 发布人:chinazhan |
减小字体
增大字体
Start! 下面是创建存储过程 CREATE PROCEDURE select_forum AS select * from forum Go xx.aspx <%@ Page Language="VB" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SQL" %> <% dim conn as SQLConnection dim cmd as SQLCommand dim myreader as SQLDataReader conn=new SQLConnectio("server=localhost;uid=sonysce;pwd=1netsg;database=1net") cmd=new SQLCommand("select_forum",conn) cmd.CommandType=CommandType.StoredProcedure conn.Open() cmd.Execute(myreader) while myreader.Read() Response.Write(myreader("content")&"<br>") end while myreader.Close() conn.CLose() %> End asp">存储过程
|
| |
|
[]
[返回上一页]
[打 印]
[收 藏] |
|
| ∷相关文章评论∷ (评论内容只代表网友观点,与本站立场无关!) [更多评论...] |
|
|