使用以下语句:
SqlCommand selectcmd=new SqlCommand();
selectcmd.CommandText="select * from abc";
SqlCommand insertcmd=new SqlCommand();
insertcmd.CommandText="insert into abc values(1,1,1)";
SqlCommand updatecmd=new SqlCommand();
updatecmd.CommandText="update abc set a=1,b=1,c=1 where a=1";
SqlCommand delcmd=new SqlCommand();
delcmd.CommandText="delete from abc where a=1";
SqlDataAdapter da=new SqlDataAdapter();
da.SelectCommand=selectcmd;
da.InsertCommand=insertcmd;
da.UpdateCommand=updatecmd;
da.DeleteCommand=delcmd;