Retrieving a bit column from sql database in VB NET

前端 未结 4 1823
闹比i
闹比i 2021-01-22 22:03

I have encountered a problem where in my database I have a column that is a bit either 0 or 1 specifying if a user is an admin or is account suspended or not. And in my VB code

4条回答
  •  旧时难觅i
    2021-01-22 22:48

    Use GetBoolean

    Although there is no "boolean" SQL data type, bit maps to .net boolean

提交回复
热议问题