MySQL constrained result set merge

Constraints:
default value default
non-null not null
unique unique
primary key primary key
auto_increment foreign key foreign key

master table, slave table

--Single-line comment
/*
multi-line comment
result set
merging 1. Requires that in the merged table, the type and number of columns are the same
2. UNION, remove duplicate rows
3. UNION ALL, do not remove duplicate rows

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325942718&siteId=291194637