본문 바로가기
SQL

leetcode 1683. Invalid Tweets

by 무적김두칠 2023. 4. 6.

https://leetcode.com/problems/invalid-tweets/description/

 

Invalid Tweets - LeetCode

Can you solve this real interview question? Invalid Tweets - Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

 

1
2
3
4
# Write your MySQL query statement below
select tweet_id 
from Tweets
where CHARACTER_LENGTH(content)>15
cs

문자열의 길이 관련 문제네요

LENGTH 함수는 Byte를 기준으로 세기때문에 사용하면 좀 곤란하고
CHARACTER_LENGTH 함수를 사용하시면 됩니다.

The problem is with the length of the string.

Since the LENGTH function counts on the basis of bytes, it is a bit difficult to use.
You can use the CHARACTER_LENGTH function.

반응형

댓글