SQL SERVER 存储过程中在使用查询的时候提示错误
DECLARE@T_CityNameVARCHAR(30)set@T_CityName=selectCityNamefromT_basic_CitywhereCityNa...
DECLARE @T_CityName VARCHAR (30)
set @T_CityName = select CityName from T_basic_City where CityName = @In_SenderCity IF(@T_CityName = @In_SenderCity)
begin
set @m_SendCityName = @T_CityName
end
提示:关键字 'select' 附近有语法错误。 展开
set @T_CityName = select CityName from T_basic_City where CityName = @In_SenderCity IF(@T_CityName = @In_SenderCity)
begin
set @m_SendCityName = @T_CityName
end
提示:关键字 'select' 附近有语法错误。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询