Time:10-31
CodePudding user response:
select l.x x_xx, lxx_xx, t.x x_xx from Xx_xx_xx l, xx_xx_xx t Where t.x x_xx=l.x x_id And t.x x_xx_id in (' 1 ', '2') And t.x x_id in (' xx ') And l.x x_xx='20190901' How to make the 1 and 2 in two columns show
try pivot
do you have in this 1, 2 are fixed or something? If fixed directly add a column write down go to, if not get some sample data to see,
Page link:https//www.codepudding.com/database/74856.html