본문 바로가기
Database/SQL

[MSSQL] 특정 단어 개수 확인 하기, null값 삭제하기

by java나유 2022. 7. 6.

특정 단어 개수 확인하기

 

select count(*) from 테이블명 where 필드명 like '%'

select count(*) from school1$ where spart like '%공립%'
select count(*) from school1$ where sname like '%유치원%'
select count(*) from school1$ where saddr like '%남구%'

 

null값 삭제 하기 

delete from school1$ where stel1 is null and stel2 is null and stel3 is null;

 

 

728x90

'Database > SQL' 카테고리의 다른 글

PostgreSQL INTERVAL 날짜 계산  (0) 2024.10.08
Dbeaver 한글 깨질 때 / 한글 깨짐 현상 오류  (0) 2022.10.18

댓글