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