小编qcc*_*qcc的帖子

带有嵌套选择的sql插入语句

是否可以执行 1 个 sql 语句(插入),复制另一个表中的插入值之一和硬编码的另一个值?例如,profilepic,我想复制另一个表数据中的值。至于显示名称,我想进行硬编码。这是我的sql语句:

  insert into registration (profilePic, displayname) 
    values ( (select profilePic from registration where userId = 143), 'abc'  );
Run Code Online (Sandbox Code Playgroud)

来自 mysql 的错误消息:

Error code:1093. You can't specify target table 'registration' for update in from clause. 
Run Code Online (Sandbox Code Playgroud)

mysql sql

3
推荐指数
1
解决办法
3923
查看次数

无法安装docker

我正在尝试做超级面料(设置环境),它需要docker.我试着在互联网上搜索解决安装码头工具但是无济于事.以下是我尝试安装docker时遇到的错误.

在git bash(git)我尝试使用sudo apt-get install docker-engine.但它说

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 Docker-engine: Depends: init-system-helpers (>= 1.13~) but it …
Run Code Online (Sandbox Code Playgroud)

git bash docker hyperledger hyperledger-fabric

1
推荐指数
1
解决办法
5988
查看次数

标签 统计

bash ×1

docker ×1

git ×1

hyperledger ×1

hyperledger-fabric ×1

mysql ×1

sql ×1