SQL
[MSSQL] 대문자 or 소문자 확인하기 (바이너리 이용)
요지
2014. 11. 4. 11:34
* 바이너리로 확인하여 대문자 or 소문자로 변형후 기존에 있는 컬럼을 확인해본다.
select
convert(varbinary, ATCCode) , ATCCode
, convert(varbinary, upper(ATCCode)) , upper(ATCCode)
, *
from [테이블이름] where convert(varbinary, ATCCode) = convert(varbinary, upper(ATCCode))