如何加入2个不匹配列的不同表

时间:2018-04-26 01:14:29

标签: mysql database mysqli pdo

示例我有表1:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
   > Could not find com.android.tools.lint:lint-gradle:26.1.1.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

表2为空但有列:

ID   USER   Password
1   name1     pass1
2   name2     pass2

所以我想将记录从table1传递到表2或将它们连接在一起,因此插入表1的每个记录也将插入到表2中。 TIA。

1 个答案:

答案 0 :(得分:0)

如何在两个表中添加关系id并截断它..