有一个表,里面有了
id username userid userpwd。
1 null C123 123456
3 null CC123 123456
4 null WC123 123456要向这个表里的字段 username 插入一个兑换用户的名字。
是可以只插入username 还是要修改这个表的数据。
当username的名字相同的时候 就提示已经兑换过了。
id username userid userpwd。
1 null C123 123456
3 null CC123 123456
4 null WC123 123456要向这个表里的字段 username 插入一个兑换用户的名字。
是可以只插入username 还是要修改这个表的数据。
当username的名字相同的时候 就提示已经兑换过了。
alter table tb add unique(username)
如果提示错误,就异常处理下
Update [table] Set username=‘参数’ where id=N
NND
老大来一句 asp里面是 可以只插入一个字段。
我没有领会到。
我又不了解asp