我有一个包含以下列的表格:
ID | CLIENT_SYNCED_TIME | NAME | DESCRIPTION | LM_TIME
Run Code Online (Sandbox Code Playgroud)
LM_TIME当任何其他列值更新时,该列将由触发器自动设置。
但是我希望LM_TIME....在列更新时不会被触发器CLIENT_SYNCED_TIME更新。
我现在正在使用下面的触发器,它会LM_TIME在任何列值更改时更新。
只是我只想让触发器不用担心CLIENT_SYNCED_TIME列。为了达到这个效果,我必须做哪些修改?
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[updateLM_TIME]
ON [dbo].[INSTITUTIONS]
AFTER INSERT, UPDATE
AS
UPDATE dbo.INSTITUTIONS
SET lm_time = CONVERT(DATETIME, CONVERT(VARCHAR(20), GETDATE(), 120))
WHERE ID IN (SELECT DISTINCT ID FROM Inserted)
GO
Run Code Online (Sandbox Code Playgroud) 1)如何在sidenav中的工具栏下方显示sidenav滚动条:
2)还有如何仅当我们将鼠标光标移动到侧面导航上时才显示滚动条。
<mat-sidenav-container fullscreen>
<!-- SIDENAV -->
<mat-sidenav [mode]="showLeftNAV ? 'side' : 'over'" [opened]="showLeftNAV" class="mat-elevation-z10" style="width:312px;border: 0px;">
<!-- SIDENAV-HEADER-TOOLBAR -->
<mat-toolbar color="primary" style="height:112px;position: sticky; top: 0; z-index: 10;">HELLO</mat-toolbar>
<!--SIDENAV-BODY-CONTENT -->
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4>
<h4 mat-line>SAMPLE TEXT</h4> …Run Code Online (Sandbox Code Playgroud)我想打印HTML,但我不能够改变的布局和保证金的的Chrome浏览器(参见所附的图像)。
PRINT() {
window.print();
}Run Code Online (Sandbox Code Playgroud)
@media print {
.doNotPrint {
display: none;
}
* {
-webkit-print-color-adjust: exact;
}
@page {
margin: 0 !important;
size: A4 Landscape !important;
-webkit-print-color-adjust: exact;
}
html,
body {
margin: 0 !important;
size: A4 Landscape !important;
-webkit-print-color-adjust: exact;
}
}Run Code Online (Sandbox Code Playgroud)
<form [ngClass]="themeSRVC.currentThemeNAME" fxLayout="column" fxFlex>
<!-- navBAR -->
<mat-toolbar id="idPrimaryTOOLBAR" color="primary" class="doNotPrint">
<mat-toolbar-row>
<button mat-icon-button type="button" (click)="routeSRVC.goBACK()">
<mat-icon matTooltip="Go Back">arrow_back</mat-icon>
</button>
<span class="fillSPACE"></span>
<button mat-icon-button (click)="PRINT()">
<mat-icon matTooltip="print">print</mat-icon>
</button>
</mat-toolbar-row>
</mat-toolbar> …Run Code Online (Sandbox Code Playgroud)