查找名称中包含 1 或 2 或 3 或.... 20 个字符的所有电影的名称和 IMDB 评级
Find the name and IMDB rating of all the movies which contain either 1 or, 2 or, 3 or.... 20 characters in their name
我的 Movie_Info
数据库中有一个 movie
table,其中包含 Movie_Name
、Movie_ID
、IMDB_Rating
等字段。像这样:
现在我想获取所有包含 1~20 个字符的电影的名称和 IMDB 评级。
它的 SQL
查询应该是什么?
这是您需要的完整查询:
select
name, IMDB_rating
from Movie_Info
where length(Movie_name) between 1 and 20
我的 Movie_Info
数据库中有一个 movie
table,其中包含 Movie_Name
、Movie_ID
、IMDB_Rating
等字段。像这样:
现在我想获取所有包含 1~20 个字符的电影的名称和 IMDB 评级。
它的 SQL
查询应该是什么?
这是您需要的完整查询:
select
name, IMDB_rating
from Movie_Info
where length(Movie_name) between 1 and 20