问答题
简答题
已知数据表Student存储在SQL Server服务器的School数据库中,用户名为sa,密码为xyz123,创建student数据表的命令为:
CREATE TABLE Student (
SName varchar(20) Primary Key Not NULL,
SPwd Varchar(15) Not NULL
)
试根据下面的代码使用命令对象完成在student数据表中插入一条记录。
<%
tname = Request.Form("txtName") ’接收到的用户名
tpwd = Request.Form("txtPwd")
’接收到的密码
%>
【参考答案】
<%
Set conn = Server.CreateObject("ADODB......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
