问题描述
ScopE_IDENTITY()
我没有看到任何额外的 var commandText = @"
DECLARE @groupId int
INSERT INTO Group (""Name"") VALUES (""MyName"")
SELECT @groupId = ScopE_IDENTITY()
INSERT INTO [User] (""Username"",""GroupId"") VALUES (""MyUser"",@groupId)";
migrationBuilder.sql(commandText);
但这个按摩一直在显示
$ sudo apt update
/usr/bin/apt: 17: /usr/bin/apt: Syntax error: EOF in backquote substitution
$sudo apt-get update
/usr/bin/apt-get: 1: /usr/bin/apt-get: �: not found
/usr/bin/apt-get: 1: /usr/bin/apt-get: �@8: not found
/usr/bin/apt-get: 1: /usr/bin/apt-get: ELF: not found
/usr/bin/apt-get: 15: /usr/bin/apt-get: Syntax error: "(" unexpected
解决方法
如果出现 Synax 错误,请尝试运行此命令“sudo apt-get install --reinstall apt”,您可以改用“apt-get”,它可以解决您的问题。此外,您可以尝试使用“apt-get”代替 apt,直到发现 Synax 错误(例如:sudo apt-get update)。