“Operador da União SQL” Respostas de código

SQL Union

-- UNION: distinct values (slower)
SELECT emp_name AS name from employees
UNION       
SELECT cust_name AS name from customers;

-- UNION ALL: keeps duplicates (faster)
SELECT emp_name AS name from employees
UNION ALL      
SELECT cust_name AS name from customers;
VasteMonde

Operador da União SQL

SELECT column_name(s) FROM table1
UNION
SELECT column_name(s) FROM table2;
naly moslih

Respostas semelhantes a “Operador da União SQL”

Procure respostas de código populares por idioma

Procurar outros idiomas de código