-1
我用用,如果nelow查询,但出现错误如果使用,否则在功能
CREATE FUNCTION getStationCityCode
(
@stationCode int
)
RETURNS bigint
AS BEGIN
RETURN
(
if((select cityCode from Station where [email protected])!=0)
select cityCode from Station where [email protected]
else
select 1 as cityCode
)
END