不能这样子写
ALTER PROCEDURE [dbo].[test1]
AS
declare @cs varchar(20)
set @cs = '20221101';
BEGIN
IF(@cs='') BEGIN
SELECT * FROM Dim_Dic_Date
ORDER BY id
END
ELSE BEGIN
ORDER BY code