C#操作SQL Server中的Image類型數據

該例子是一個對SQL Server數據類型的一個操作例子,具有寫入、讀取功能。 1:準備數據庫 1)創建數據庫 Test 2)創建表 Table_1 (分別有2個字段:id(Int)、photo(Image)) 如圖: 2:用C#進行讀寫操作,完整代碼如下: using System; using System.Collections.Generic; using System.Component
相關文章
相關標籤/搜索