我在 Microsoft SQL Server Management Studio 中创建了一个表,该表运行良好,构建时没有错误。然后,当显示以下消息时,我正在将脚本复制到我在 Visual Studio 中的项目中:
SQL80001:语法错误 'OPTIMIZE_FOR_SEQUENTIAL_KEY'
我不知道为什么会这样,但是此错误显示在代码的这一行中:
(PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF )
Run Code Online (Sandbox Code Playgroud)
你们知道为什么 Visual Studio 会显示该错误消息吗?我该如何解决?
我使用delphi运行以下代码:
if (number> 8) and (number< 10) then
message:= 'first option'
else if (number> 11) and (number< 17) then
message:= 'second option'
else if (number> 18) then
message:= 'third option';
Run Code Online (Sandbox Code Playgroud)
我需要执行确切的代码,但使用case,我正在尝试,但没有找到任何解释如何执行此操作的内容:
case idade of
(case > 8 and case< 10) : message:= 'first option';
(case > 11 and case< 17) : message:= 'second option';
(case > 18) : message:= 'third option';
end;
Run Code Online (Sandbox Code Playgroud)
我也尝试过搜索有关案例的问题,但我想我也没有找到找到此答案的正确方法。