Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我们有表:t1(_id, url), t2(_id ,url), t3(_id, url), ...
t1(_id, url)
t2(_id ,url)
t3(_id, url)
我想从表格中获取所有网址:
select url from t1 union select url from t2 union select url from t3 union ...
没关系,但如果我还有 3 张桌子,那就太长了。那么我怎样才能得到url所有表呢?
url
如果您需要来自所有表的数据,则必须在FROM子句中的某处命名所有表。如果您不命名它们,SQLite 就无法知道您想要从哪些表中获取它们。SELECT
FROM
SELECT