【发布时间】:2021-05-12 20:11:32
【问题描述】:
假设查询是 从 test_table 中选择 con, a, b, c, d, e where con in (1,2,3,4,5);
现在对于 1、2、4、5,表格有数据,但对于 3,没有数据。
所以输出将如下所示。
con a b c d e
1 s1 s2 s3 s4 s5
2 s3 s5 s6 s7 s2
4 s3 s7 s1 s5 s8
5 s4 s8 s4 s7 s8
but how to get the result as follows
con a b c d e
1 s1 s2 s3 s4 s5
2 s3 s5 s6 s7 s2
3 N/A N/A N/A N/A N/A
4 s3 s7 s1 s5 s8
5 s4 s8 s4 s7 s8
需要帮助。尝试了不同的组合,但无法做到这一点。
【问题讨论】: