[英]Get ROWID using INNER JOIN Python SQLite
I am trying get number column using INNER JOIN我正在尝试使用 INNER JOIN 获取数字列
SELECT rowid, * FROM table1
INNER JOIN table2
ON table1.name= table2.ID
WHERE name= "name"
It does't work.它不起作用。
How can i get rowid with joining two table?如何通过加入两个表获得 rowid?
Probably you should point from which table is should be taken?可能您应该指出应该从哪个表中获取? Something like this:
像这样的东西:
SELECT t1.rowid, t1.*, t2.* FROM table1 t1
INNER JOIN table2 t2
ON t1.name = t2.ID
WHERE t1.name = "name"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.