Quantcast
Channel: Creating view in mysql with union all but all records are being shown under 1 column - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Ron Smith for Creating view in mysql with union all but all records...

From what can be gathered of your schema, it looks like you want to do an inner join from the auditTable to your usernames and actionDesc table, and select the username, actionDesc, and timestamp...

View Article



Answer by Marcus Adams for Creating view in mysql with union all but all...

With UNION, MySQL uses the column names from the first SELECT statement, and the number of columns must match.You can do something like this:SELECT table1.col1, NULL AS col2 FROM table1UNION ALLSELECT...

View Article

Creating view in mysql with union all but all records are being shown under 1...

I'm trying to create a view in MYSQL but when using Union ALL it is being shown underneath 1 column. when I try to add column names it simply says that the amount of columns and results dont matchuse...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images