判斷資料庫欄位是否null

  • 1248
  • 0

摘要:判斷資料庫欄位是否null

DataReader.IsDBNull(DataReader.GetOrdinal("欄位名稱"))

 

做一下筆記 ^^"