SELECT CASE WHEN THEN (SELECT)

后端 未结 4 1362
感情败类
感情败类 2020-12-18 00:34

I am trying to select a different set of results for a product depending on a product type. So if my product should be a book I want it to look up the UPC and Artist for a n

4条回答
  •  暖寄归人
    2020-12-18 00:41

    For a start the first select has 6 columns and the second has 4 columns. Perhaps make both have the same number of columns (adding nulls?).

提交回复
热议问题