You table needs to have a primay key defined in the database. The CommandBuilder uses this key to process updates and deletes
解决方案 »
- 做过打印功能的进来瞅瞅~~~~
- asp.net两问:OleDbParameter 参数顺序及获取上一页的问题
- 一个在线客服功能,客户在web上提问,客服人员以单机的类似msn的cs客户端答复,求最佳实现方案,谢谢
- 做这样的网站要多少钱 ?(http://www.gzjinzhong.com.cn)
- 为什么事件处理函数的入口总是有两个Object和EventArgs类型?
- 糊涂了,以前做过的一个简单问题?
- datagrid的编辑按钮为什么没有用?
- [原创]用ASP.net+SQL Server动态生成xml数据(提供源代码)
- 請問諸位﹐在.NET中如何調用"存儲過程"﹐還有如下
- 关于ASP.net网站一个很奇怪的问题
- 为什么我用DataGrid做翻页时,翻到第2页很好,可翻到第三页时就翻不过去了???
- 请教DataGrid,Repeater和DataList的区别及其使用的场合。
create table test_t
(
username char(20) not null,
copid number(3,0) not null,--user id
lcount int not null
);
create unique index test_t_x1 on test_t (username);
create unique index test_t_x2 on test_t (copid);By the way, I used the DataSet ! Whether the primay key will be missed when select the data from db to dataset?Thanks in advance!
create table test_t
(
username char(20) not null,
copid number(3,0) not null,--user id
lcount int not null
constraint PK_test primary key (copid)
);
试试这样创建表
敬请各位高手提供解决之道。谢谢!!!BTW,可以加个临时的primary key 在DataSet, 而不用在DB里加呢?因为我的DB不需要primary key。