sql难学吗 SQL一行变多行?
SQL一行变多行?您想转机吗?那很简单。把它和工会并列起来。例如,您有一个表t(C1,C2,C3)从t中选择C1,C2,C3--转换列从t union all中选择C1从t union all中选择C
SQL一行变多行?
您想转机吗?那很简单。把它和工会并列起来。例如,您有一个表t(C1,C2,C3)
从t中选择C1,C2,C3
--转换列
从t union all中选择C1
从t union all中选择C2
从t union all中选择C3
SQL一行变多行?您想转机吗?那很简单。把它和工会并列起来。例如,您有一个表t(C1,C2,C3)从t中选择C1,C2,C3--转换列从t union all中选择C1从t union all中选择C
您想转机吗?那很简单。把它和工会并列起来。例如,您有一个表t(C1,C2,C3)
从t中选择C1,C2,C3
--转换列
从t union all中选择C1
从t union all中选择C2
从t union all中选择C3