[mssql] Boolean 데이터 타입 (BIT)

힐링힐링·2023년 4월 25일
0

Boolean형식을 mssql에서 사용하고 싶으면 BIT 데이터 형식을 사용하면 된다.

DECLARE @b1 BIT = 'false'
PRINT @b1                    --prints 0

DECLARE @b2 BIT = 'true'
PRINT @b2                    --prints 1
profile
블로그 이전합니다 https://james-kim-tech.tistory.com/

0개의 댓글