怎样判断数据表中某个字段有重复的值 请各位高手指点? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select 字段1,count(*) from 表 where group by 字段1 having count(*)>1 select distinct(列名) from tablename-------------------------select count(列名) from tablenameselect count(distinct 列名) from tablename如果数量一致就没有重复的值 执行不了。数据表中有一字段Cust_id是设为主键,不能有重复,怎样利用语句判断当用户输入重复值是提示用户 用错误判断。on error goto a...............中间的“.”是你的程序。...............exit suba: msgbox err.Description ' (err.Description)也可换成你自已写的msgbox记得给分哈! set Rs=conn.execute("select Cust_id from 表 where Cust_id='" & Text1.text & "'")if rs.bof or rs.eof thenelse msgbox "重复"endif VB6中块注释有无快捷键 Open " " For Output As #1的问题 用VB做一个下载程序(寻求源码) 改变菜单上汉字的字体,怎么改 菜鸟在线等!!!!!!!!!!!!!!!!! 用vb写asp组件问题 数据集 如何用VB6.0读我这个XML的FILE??恳请大侠帮忙!!! SendMessage()向CListCtrl对象的某个item发送鼠标单击消息 (选取其中某一 item ) 我的新作,进销存软件,免费使用,欢迎赐教。 谁vb做过有关总商品条形码的软件 请高手指路:那里有vb6的注册机啊,给个序列号让用也可以啊!大侠救命! 很简单的问题:如何打开指定的文件夹
select count(列名) from tablename
select count(distinct 列名) from tablename如果数量一致就没有重复的值
on error goto a
.....
.....
.....中间的“.”是你的程序。
.....
.....
.....
exit sub
a:
msgbox err.Description ' (err.Description)也可换成你自已写的msgbox记得给分哈!
if rs.bof or rs.eof then
else
msgbox "重复"
endif