error: sql server中將字符串轉換爲 uniqueidentifier 時失敗

sql server查詢中出現 將字符串轉換爲 uniqueidentifier 時失敗異常web 緣由爲id設置爲uniqueidentifier 字段,在where查詢時須要作轉換cast(id as varchar(36)),例如sql select * from test where cast(id as varchar(36)) in('2946a572-7dbf-4ab8-a9d2-0
相關文章
相關標籤/搜索