這個有勾選嗎? 看圖推測
也可以使用 <pre class="c" name="code">convert(varchar(7...
where year(日期欄位) = @year and month(日期欄位) = @month 這樣也可以在SQL Server指定年月做為篩選條件