DB관련/SQL Server
Update sql bit field in database
saltdoll
2015. 11. 12. 03:20
반응형
MSSQL의 bit필드 연산자.
// 다음고 같이 하면 에러가 에러가 발생됩니다.
Update table1 set Active='True'
SQL의 bit필드 연산는 다음과 같이 1과 0으로 처리해 줘야 합니다.
Bits
in SQL Server are always stored as 1
or 0
in a bitmap.
The "Edit Table" option in SSMS just translates this to True
or False
for presentation purposes, this is nothing to do with how it is actually stored.
출처: http://stackoverflow.com/questions/6879999/update-sql-bit-field-in-database
반응형