Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(+)= "plus equal" operator in SQL statement [duplicate]

Tags:

operators

sql

I have the following sql statement in php. What does "(+)=" plus-equal operator mean in an SQL statement? e.g.

<?php

$query = "SELECT * FROM multimedia multi, titles title where title.id(+)=multi.title";

?>
like image 759
programmer Avatar asked Jan 11 '23 09:01

programmer


1 Answers

This is old Oracle syntax for a left outer join. It is better written as:

SELECT *
FROM multimedia multi left outer join
     titles title
     on title.id = multi.title;

Here is documentation on the subject.

like image 143
Gordon Linoff Avatar answered Jan 21 '23 22:01

Gordon Linoff