关于添加的问题 在线等待 这个需要在输入后查询数据库,根据输入的那个之查询数据库中是否已经存在相应的值。存在,就报错,其实就是多加一个Select动作 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ……da.fill(ds,"Exist")if ds.tables("Exist").rows.count>0 then 错误对话框else strsql="insert into ......"end if 可以先根据text中的内容,选出记录集,如果记录集为空,可以增加;如果记录集不为空,则增加新纪录。 当然,如果数据库表中的xuhao字段是自增型的,则没必要做如此判断,可以直接向数据库增加数据,当然也不用在textbox中输入xuhao了。 da.fill(ds,"Exist")if ds.tables("Exist").rows.count>0 then 错误对话框else strsql="insert into ......"end ifwhat's da?what's ds? context.Request.Files.Count SQL语句ACCESS数据库某列计和怎写? ASP.NET中如何循环处理ID号连续的文本框 Foreach的使用场合 用javascript记住操作 b/s结构中,如何在服务端知道客户端已经退出去了? [分享组件学习经验]有看过组件编程方法的书或者在学组件编程的同学进来 简单web.config问题 关于英文版 VS.NET BETA1 安装出现的问题 读取数据库动态判断评分==================================== 关于隐藏页面控件button的问题 问个简单问题
……
da.fill(ds,"Exist")
if ds.tables("Exist").rows.count>0 then
错误对话框
else
strsql="insert into ......"
end if
if ds.tables("Exist").rows.count>0 then
错误对话框
else
strsql="insert into ......"
end ifwhat's da?
what's ds?