标题:高手帮我看一条SQL命令
取消只看楼主
pasha
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-9-20
 问题点数:0 回复次数:0 
高手帮我看一条SQL命令

Private Sub search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles search.Click Dim sqlcon As New SqlConnection("server=.;database=login;uid=sa;pwd=sa") Dim i As Integer sqlcon.Open()

Dim sqlcom As New SqlCommand("select * from telselect where name=" & txtname.Text, sqlcon)

这里有什么问题啊 高手帮我看看啊

Dim reader As SqlDataReader reader = sqlcom.ExecuteReader() Response.Write("<table border=0 width=400>") Do While reader.Read Response.Write("<tr>") For i = 0 To reader.FieldCount - 1 Response.Write("<td>" & reader.GetValue(i) & "</td>") Next Response.Write("</tr>")

Loop Response.Write("</table>") reader.Close() sqlcon.Close()

End Sub

搜索更多相关主题的帖子: SQL 命令 
2005-09-20 22:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-28190-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.107191 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved