复制代码 代码如下:
sql="select * from multitable";
oledbdataadapter olesub=new oledbdataadapter(sql,olecn);
oledbcommandbuilder cb1=new oledbcommandbuilder(olesub);
dataset ds=new dataset();
olesub.fill(ds."multitable");
datatable dt=ds.tables["multitable"];
datarow dr=dt.newrow();
dr["prserv"]="ws"+index.tostring().padleft(6,''''0'''');
dr["number"]="00063";
dt.rows.add(dr);
olesub.update(ds,"mulittable");
复制代码 代码如下:
ataadapter olesub=new oledbdataadapter(sql,olecn);
oledbcommandbuilder cb1=new oledbcommandbuilder(olesub);
cb1.quoteprefix="[";
cb1.quotesuffix="]";
新闻热点
疑难解答
图片精选