-
Notifications
You must be signed in to change notification settings - Fork 456
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
SQL Server,在Insert时报错 #241
Labels
Comments
我使用的是Chloe.SqlServer 3.9版本,如果是个BUG的话,不知道新版本有没有处理这个问题? |
I also have this problem. Have you solved it |
这是个问题。把三元提到lambda外吧 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用三目表达式时SQL如下:
INSERT INTO t_tctbgd VALUES(@P_0,@P_1,@P_2,@P_3,@P_4,@P_5,@P_6,@P_7,@P_8,@P_9,@P_8,@P_8,@P_10,@P_11,@P_12,@P_13,@P_14,@P_15,@P_16,@P_17,@P_18,@P_19,@P_20,@P_21,@P_17,@P_8,@P_22,@P_23,@P_24,@P_25,CASE WHEN @P_26 THEN @P_8 WHEN NOT (@P_26) THEN N'' ELSE NULL END,@P_8,@P_27,@P_27,@P_28,@P_28,@P_28,@P_28,@P_28,@P_28,@P_28,@P_29,@P_16,@P_8,@P_8,@P_30,@P_31,@P_16,@P_32,@P_33,@P_34,@P_35,@P_36,@P_37,@P_8,@P_8,@P_37,@P_38);SELECT @@IDENTITY
未使用三目表达式时SQL如下:
INSERT INTO t_tctbgd VALUES(@P_0,@P_1,@P_2,@P_3,@P_4,@P_5,@P_6,@P_7,@P_8,@P_9,@P_10,@P_11,@P_12,@P_13,@P_14,@P_15,@P_16,@P_17,@P_18,@P_19,@P_20,@P_21,@P_22,@P_23,@P_19,@P_24,@P_25,@P_26,@P_27,@P_10,@P_10,@P_11,@P_28,@P_28,@P_29,@P_29,@P_29,@P_29,@P_29,@P_29,@P_29,@P_30,@P_18,@P_11,@P_11,@P_31,@P_32,@P_18,@P_33,@P_34,@P_35,@P_36,@P_10,@P_37,@P_11,@P_11,@P_37,@P_38);SELECT @@IDENTITY
我发现SQL中多了CASE和THEN,继而导致Insert执行时报错。
The text was updated successfully, but these errors were encountered: