相关文章
推荐文章
热门文章
ASP中是如何使用存储过程的
|
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 |
↑返回顶部
打印本页
关闭窗口↓
| 收藏本文到:天极网摘 新浪VIVI 和讯网摘 博彩中心 365Key网摘 poco网摘 狐摘 亿友响享Yeeyoo igooi-it网摘 5seek网摘 I2Key 我摘网摘 天下图摘 YouNote 百特门 |
