我使用带有可选参数的角度。我通过导航路由到一个位置:
router.navigate(["route1"], { p1: v1 });
Run Code Online (Sandbox Code Playgroud)
我看到了位置
/路线1;p1=v1
现在我尝试导航到
/路线1;p1=v1 ;p2=v2
我搜索类似的东西
router.navigate({ p2: v2 }, relative);
Run Code Online (Sandbox Code Playgroud)
但我在寻找有效的语法时遇到问题。
我试图找到一个特定的 SQL 语句来替换旧的 SQL 查询。总而言之,我尝试仅在 where 条件下进行左连接。这是我的测试环境:
create table Mst
(
Id bigint not null primary key clustered,
Firstname nvarchar(200) not null,
Lastname nvarchar(200) not null
);
create table Dtl
(
Id bigint not null primary key clustered,
MstId bigint not null references Mst(Id),
DetailDescr nvarchar(500) not null
);
Run Code Online (Sandbox Code Playgroud)
我用一些数据填充表格:
declare @i as bigint = 0;
while @i < 999
begin
insert into Mst values (@i, N'Name ' + Str(@i), N'Lastname ' + Str(@i));
if (@i % 10 = 0) …Run Code Online (Sandbox Code Playgroud)