SQL

SQL 코드카타: Invalid Tweets

sawo11 2025. 1. 14. 11:06

Invalid Tweets

Write a solution to find the IDs of the invalid tweets. The tweet is invalid if the number of characters used in the content of the tweet is strictly greater than 15.

SELECT tweet_id
FROM Tweets
WHERE CHAR_LENGTH(content) > 15;

CHAR_LENGTH(content)

  • 문자열 content의 길이 계산
  • CHAR_LENGTH()는 문자열에 포함된 문자의 개수(길이) 반환