多项选择题
A.SqlDataAdapter da =SqlDataAdapter( SELECT *FROM MyTab……
要使用适配器对象获取MyTable 表中所有数据,假设con 是可用的连接对象,则正确的方式为()
A.SqlDataAdapter da =SqlDataAdapter("SELECT *FROM MyTable",con);DataSet ds =new DataSet();da.Fill(ds);
B.SqlCommand cmd =new ("SELECT *FROM MyTable",con);SqlDataAdapter da =SqlDataAdapter(cmd);DataSet ds =new DataSet();da.Fill(ds);
C.SqlCommand cmd =new ("SELECT *FROM MyTable",con);SqlDataAdapter da =SqlDataAdapter(cmd);DataSet ds =new DataSet();da.Fill(ds,"MyTable");
D.SqlDataAdapter da =SqlDataAdapter("SELECT *FROM MyTable",con);DataSet ds =new DataSet();da.Fill(ds.Tables["MyTable"]);