Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

=* operator in sql

I was typing along and fat finger something and when I typed

=*

in the sql window (2008 SSMS connected to a 2005 server) it turned blue as a keyword.

I can not figure out, or google, what this does. I know *= but not =*

What does this operator do?

like image 330
Mike Avatar asked Nov 14 '12 15:11

Mike


People also ask

What are the 5 types of SQL operators?

There are six types of SQL operators that we are going to cover: Arithmetic, Bitwise, Comparison, Compound, Logical and String.

What is a SQL Server operator?

An operator is a symbol specifying an action that is performed on one or more expressions. The following table lists the operator categories that SQL Server uses.

Does SQL use == or?

The sql equal operator is used to check whether two expressions are equal or not. If it's equal, the condition will be true and will return matched records. The sql not equal operator is used to check whether two expressions are equal or not.


1 Answers

=* is an old way to write right outer joins. For example:

select  *
from    A
right outer join
        B
on      A.bid = B.id

Is written in the old style like:

select  *
from    A
,       B
where   A.bid =* B.id
like image 194
Andomar Avatar answered Nov 17 '22 20:11

Andomar