[.NET] 查詢DB資料

看板Visual_Basic作者 (也太捲了吧!!囧)時間17年前 (2008/05/07 20:28), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
我要從現有的table裡查詢資料,可是我不知道資料型態為何 當我用 .GetString(0) 時會出現 Unable to cast object of type 'System.Guid' to type 'System.String' 這樣的 error message,可是改成 .GetGuid(0)似乎又無此指令 請問Guid 是什麼?? -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.20.121.178

05/08 09:39, , 1F
.GetValue(0).ToString()
05/08 09:39, 1F

05/08 09:39, , 2F
GUID 是 uniqueidentifier,一組 128 位元的識別碼
05/08 09:39, 2F
文章代碼(AID): #188Q1gfB (Visual_Basic)