我需要将其转换为我的 SQL 中的存储过程
SELECT Movie_ID
FROM Movie
WHERE MovieName = 'The Matrix'
AND Shop_ID IN (
SELECT Shop_ID
FROM Shop
WHERE Location = 'NY')
我只是写吗
CREATE PROCEDURE SearchQuery(
SELECT Movie_ID
FROM Movie
WHERE MovieName = 'The Matrix'
AND Shop_ID IN (
SELECT Shop_ID
FROM Shop
WHERE Location = 'NY')
或者怎么做?最后我想用movieName
and调用这个过程StoreLocation
,但是我该怎么做呢?
该程序应该告诉我电影是否在该地点出租:)