我:外連接幫助甲骨文
select title, order#, STATE
from customers C, ORDERITEMS O, books b
where b.ISBN=O.ISBN (+)
order by title
但我想明白爲什麼沒有訂單號行有狀態
BODYBUILD IN 10 MINUTES A DAY 1003 CA
BODYBUILD IN 10 MINUTES A DAY 1003 WY
BODYBUILD IN 10 MINUTES A DAY 1003 TX
BODYBUILD IN 10 MINUTES A DAY 1003 NY
BODYBUILD IN 10 MINUTES A DAY 1003 WA
BODYBUILD IN 10 MINUTES A DAY 1003 ID
BODYBUILD IN 10 MINUTES A DAY 1003 FL
BUILDING A CAR WITH TOOTHPICKS - FL
BUILDING A CAR WITH TOOTHPICKS - NJ
BUILDING A CAR WITH TOOTHPICKS - GA
BUILDING A CAR WITH TOOTHPICKS - MI
您確定訂單號碼真的是空的嗎?短劃線('-'字符)與'NULL'不同。除此之外:請說明從哪個表格中選取了三列。 – Arjan 2011-03-24 21:52:10
@Arjan是的,我回滾了,我認爲OP與你同時編輯。我想我們會看到誰的回滾優先。 – 2011-03-24 21:52:12
那麼我輸入什麼來格式化代碼呢? – user490735 2011-03-24 22:03:53