parameters集合造句
例句與造句
- Command對象具有由Parameter對象組成的Parameters集合。
- 如果必要可以使用Delete方法將Parameters對象從Parameters集合中刪除。
- 還將從Command對象的Parameters集合中清除任何提供者定義的參數(shù)。
- 使用CreateParameter方法可以創(chuàng)建具有適當(dāng)屬性設(shè)置的Parameters對象,使用Append方法可以將其添加到Parameters集合。
- 如果正在寫入不提供參數(shù)信息的提供者,則必須使用此方法手工填充Parameters集合才能使用參數(shù)。
- 用parameters集合造句挺難的,這是一個(gè)萬能造句的方法
- 如果調(diào)用Refresh方法前沒有定義自己的Parameter對象而訪問Parameters集合,ADO將自動調(diào)用方法并填充該集合。
- 在SqlCommand對象能夠被執(zhí)行之前,所有參數(shù)都必須添加到Parameters集合中,并且必須正確設(shè)置Connection、CommandType、CommandText和Transaction屬性。
- 某些提供者不支持存儲過程進(jìn)行調(diào)用或參數(shù)化查詢,使用這樣的提供者時(shí)調(diào)用Parameters集合上的Refresh方法將返回錯(cuò)誤。
- 使用Command對象的Parameters集合上的Refresh方法,可以獲取有關(guān)Command對象中指定的存儲過程或參數(shù)化查詢的提供者的參數(shù)信息。