简体   繁体   中英

Left Outer Join in SQLite

I have two tables, the first having more rows than the second.

I am trying to use a LEFT OUTER JOIN to put these two tables together in SQLite but I keep getting an error message.

The query I am running is:

SELECT a.object, a.id, b.objectName 
FROM tableOne a 
LEFT OUTER JOIN tableTwo b ON a.id=b.id 

The error message I get is:

Exception Name: NS_ERROR_FAILURE
Exception Message: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.createStatement]

Isolate table names:

SELECT a.object, 
       a.id, 
       b.objectName 
  FROM "tableOne" a 
       LEFT OUTER JOIN "tableTwo" b 
            ON a.id=b.id

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM