- SQL Server
declare
@v_code varchar(4);
select @v_code=CountryRegionCode from Person.CountryRegion where @@ROWCOUNT=1;
select * from Person.CountryRegion where CountryRegionCode=@v_code
declare
@v_code varchar(4);
select @v_code=CountryRegionCode from Person.CountryRegion where @@ROWCOUNT=1;
select * from Person.CountryRegion where CountryRegionCode=@v_code