Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of (+) in SQL queries

Tags:

sql

oracle

I've come across some SQL queries in Oracle that contain '(+)' and I have no idea what that means. Can someone explain its purpose or provide some examples of its use? Thanks

like image 928
Zabbala Avatar asked Feb 05 '09 19:02

Zabbala


People also ask

What does mean this symbol '@' in SQL?

'@' just signifies that it is a parameter. You can add the value for that parameter during execution process eg: sqlcommand cmd = new sqlcommand(query,connection); cmd.parameters.add("@custid","1"); sqldatareader dr = cmd.executequery();

What is %s means in SQL?

%s is a placeholder used in functions like sprintf. Check the manual for other possible placeholders. $sql = sprintf($sql, "Test"); This would replace %s with the string "Test".

What is like %% in SQL?

The LIKE operator is used in a WHERE clause to search for a specified pattern in a column. There are two wildcards often used in conjunction with the LIKE operator: The percent sign (%) represents zero, one, or multiple characters. The underscore sign (_) represents one, single character.

What is @@ in SQL?

In SQL Server, symbol @@ is prefixed to global variables. The server maintains all the global variables.


1 Answers

It's Oracle's synonym for OUTER JOIN.

SELECT * FROM a, b WHERE b.id(+) = a.id 

gives same result as

SELECT * FROM a      LEFT OUTER JOIN b      ON b.id = a.id 
like image 184
Quassnoi Avatar answered Sep 21 '22 18:09

Quassnoi