Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch默认值问题 #71

Closed
xuanhuangkeji opened this issue Jun 11, 2019 · 0 comments
Closed

switch默认值问题 #71

xuanhuangkeji opened this issue Jun 11, 2019 · 0 comments

Comments

@xuanhuangkeji
Copy link

switch条件中没有设置default 且没有命中比较值时,依旧会有where关键词出现,导致sql语句生成不正确

exec sp_executesql N'Select TT.* From
(Select ROW_NUMBER() Over(Order By T.Id Desc) Row_Index,T.* From MiniCustomer T With(NoLock)
) TT
Where TT.Row_Index Between ((@PageIndex-1)@PageSize+1) And (@pageindex@PageSize);',N'@pageindex int,@PageSize int',@pageindex=1,@PageSize=16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant