union - Combining mysql tables -


how combine table x , y:

table x (columna, columnb, columnc) table y (columna, columnb, columnd) 

to (columna, columnb, columnc, columnd) ?

i expecting see null values...

to more specific, here contents of tables:

tablex:   b   c 1 | 0 | 0 2 | 0 | 0  tabley:   b   d 3 | 0 | 0 4 | 0 | 0  result:   b   c   d 1 | 0 | 0 | null 2 | 0 | 0 | null 3 | 0 | null | 0 4 | 0 | null | 0 

i don't think expecting join, concatenate:

select columna, columnb, columnc, null columnd tablex union select columna, columnb, null columnc, columnd tabley 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -