Home > database > Merge database stored procedures
Merge database stored procedures
Time:09-18
How to make the stored procedure in two query fields appear on a line
CodePudding user response:
What do you mean?
Select * from (select aaa, BBB from a union all select, BBB, CCC from b) c So that you can put A table and B table field shows that, however, the number of fields in the subquery must agree, if A table field, A field, ' 'can be used AS XXX complement
CodePudding user response:
This is very simple,
Proc first written to a temporary table, or table variable,
With a recursive cte structure to query, will be two lines parallel processing, Or to use temporary tables and set way can
CodePudding user response:
Post your actual table structure, said doesn't make sense out of thin air