DataCamp 문제를 참고하자
https://campus.datacamp.com/courses/introduction-to-relational-databases-in-sql/your-first-database?ex=3
** Information_schema에 대한 내용은 다음의 링크를 참조
https://www.sqlshack.com/learn-sql-the-information_schema-database/
# 특정 칼럼의 이름이 주어졌을 경우
select count(COLUMN_NAME)
from information_schema.columns
where table_schema = 'schema_name'
and table_name = 'table_name'
group by COLUMN_NAME
#모든 컬럼의 개수를 셀 경우
select count(*)
from information_schema.columns
where table_schema ='schema_name'
and table_name = 'table_name'