Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Excuse me, what does it mean to add "(+)" after the condition in the SQL statement where statement? For example, where SID=TID(+)
Excuse me, what does it mean to add "(+)" after the condition in the SQL statement where statement? For example, where SID=TID(+)
Whether the left or right side of the equal sign is written with (+) is called external connection.

In an inner join, only those data rows that have matching data in the join table are returned.

Outer join means adding an empty row to the joined table to match the data, but not the row.

For example, if you query the department to which an employee belongs, the president does not belong to any department (the boss does not belong to any department, and the dname item is empty).

Select e. employee name, D. department name data name

From employee e department d

Where, department number = department number (+)

ename DNA name

——————————

Sam sales

Tom accounting

king