标题:insert into 语法出错! 求9!
取消只看楼主
ryophoenix
Rank: 1
来 自:重庆
等 级:新手上路
帖 子:60
专家分:0
注 册:2007-10-16
 问题点数:0 回复次数:1 
insert into 语法出错! 求9!
<%@ Import Namespace="system.data" %>
<%@ Import Namespace="system.data.oledb" %>
<script language="VBSCRIPT" runat="server">
    Sub enter_click(ByVal sender As Object, ByVal e As EventArgs)
        Dim conn As New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=C:\Inetpub\wwwroot\asp1\App_Data\user.mdb")
        Dim strsql As String
        strsql = "Insert Into user(user_name,password ) values('" & user_name.Text & " ','" & password.Text & " ')"
        Dim cmd As New OleDbCommand(strsql, conn)
        conn.Open()
        cmd.ExecuteNonQuery()
        conn.Close()         
    End Sub
搜索更多相关主题的帖子: insert 语法 
2007-12-10 10:30
ryophoenix
Rank: 1
来 自:重庆
等 级:新手上路
帖 子:60
专家分:0
注 册:2007-10-16
得分:0 
    3Q~!
2007-12-12 08:57



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




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

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