0
我有一個關於通過某個值創建存儲過程的問題,我編寫了過程,但隨後值包含點,所以他什麼都不返回。SQL Server存儲過程返回null
有我的代碼:
create procedure GetUserInformationByUsername
@username nvarchar(50)
as
select
ISNULL(u.FirstName, 'Unknown') as [First Name],
ISNULL(u.LastName,'Unknown') as [Last Name],
ISNULL(u.Language,'Unknown') as [speak Language],
ISNULL(c.CountryName,'Unknown') as [Country Name]
from
UsersProfile u
join
Countries c on u.CountryID = c.CountryID
where
u.UserName = @username
go
@username
是 「alex.a」 我想找到,
我要去哪裏錯了?
你的意思是零記錄? –