私は次のクエリを持っています:
SELECT item.`ID`, item.`Name`, item.`UnitCost`,
item.`Price`, discount.`rate`
FROM item
INNER JOIN discount ON discount.`ID`=item.`DiscountID`
WHERE item.`Code`=itemCode;
discountが(MEANS NULL)に割り当てられていない場合item、上記のクエリは行を返しません。
クエリを変更して処理するにはどうすればよいnullですか?の場合、null0item.discountIDを返す必要がありますか?