Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

!= What does this do?

Status
Not open for further replies.

sammybee

Programmer
Sep 24, 2003
103
GB
Hi All,

What does the != function do?

Cheers

Sam
 
I'm assuming this is part of a unix script? I should also clarify that this applies to comparisons between strings, rather than numbers (for which you'd use -ne).
 
Actually "!=" works fine in Oracle SQL, as well (for any data type comparisons):
Code:
SQL> select * from dual where 1 != 2;

D
-
X

SQL> select * from dual where sysdate != sysdate+1;

D
-
X

SQL> select * from dual where 'a' != 'b';

D
-
X

Cheers,

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
@ 16:50 (21Jan05) UTC (aka "GMT" and "Zulu"),
@ 09:50 (21Jan05) Mountain Time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top