2
我一直在尋找如何實現這一點,但我甚至不知道它是如何調用的(用於搜索它)。所以在這裏我有什麼:選擇合併兩個表,每個之間有一個
該表中的數據是這樣的:
[Products] ID - Name 1 - Apple 2 - Banana [Storehouses] ID - Name 1 - General 2 - Other [Stocks] Product - Storehouse - Stock 1 - 1 - 4 1 - 2 - 4 2 - 1 - 5 Here I want get all the products on 'Storehouse' = '2' but if not exists return 'null' or '0' And what I pretend to get is: [SELECT] Product - Stock 1 - 4 2 - null OR '0'
我不知道至極語句中使用,所以至少我需要一個線索。謝謝。
不要使用'varchar'存儲的整數。 – Kermit 2013-03-11 01:55:43