我在MVC中设计了一个带标签和下拉列表的网页。我想调整下拉框的宽度,我希望我的下拉列表在我的冒号之后显示在以下设计中:
SELECT Eid,
Shift_Start,
Shift_End,
CASE
WHEN DATEDIFF( S,
Night_Start_Time,
Night_Shift_End
) >= 1800 THEN
Night_Start_Time
ELSE
NULL
END AS Night_Start_Time,
CASE
WHEN DATEDIFF( S,
Night_Start_Time,
Night_Shift_End
) >= 1800 THEN
Night_Shift_End
ELSE
NULL
END AS Night_Shift_End,
CASE
WHEN DATEDIFF( S,
Night_Start_Time,
Night_Shift_End
) >= 1800 THEN
DATEDIFF( S,
Night_Start_Time,
Night_Shift_End
) / 3600.0
ELSE
0.0
END AS Night_Shift_Duration
FROM ( SELECT Eid,
Shift_Start,
Shift_End,
CASE
WHEN CAST( Shift_Start AS TIME ) BETWEEN '05:30:01' AND '22:00:00' THEN
CAST( ( CAST( CAST( Shift_Start AS DATE ) AS VARCHAR ) + ' 22:00' ) AS DATETIME )
ELSE
Shift_Start
END Night_Start_Time,
CASE
WHEN CAST( Shift_End AS TIME ) BETWEEN '06:00:01' AND '22:29:59' THEN
CAST( ( CAST( CAST( Shift_End AS DATE ) AS VARCHAR ) + ' 06:00' ) AS DATETIME )
ELSE
Shift_End
END Night_Shift_End
FROM #Shift
) AS shiftTimesFinder;
使用的代码如下:
format('CREATE ... WHERE dt_trx BETWEEN %L AND %L ...', dt1, dt2)
我该如何解决?