:rolleyes:
In T-SQL I could use <> or != to do an inequality comparison.
However which method would be most suited?
I and my co-workers use C# so I think I'll use !=. :cool:
This fits in with our dev language pilosophy.
Are there any reasons why I shouldn't?
Opinions welcome.
Shaun McGuile
"...you think the worms of Dune are big, wait till you see the sparrows!"Afaik there is absolutely no difference. As you, i strongly preffer using !=|||Old style syntax such as "!=" is supported by MSSQL, but not encouraged.
The familiar "<>" is more universally recognized.|||I find it strange that its old style
I would have said that <> is BASIC programming style
and
!= is more C# and Javascript style.
(from my perspective more modern).
Regards
(3 Card Brag - Rules - you can't see a blindman!). :cool:|||I think what the BM is saying is that one is MS specific and the other is in the ANSI-92 specification. If you ever need to port your app to another DB platform the less MS specific code you have the better off you will be.
who cares what is more in line with app code?
BTW, you spell sean the wrong way.|||He is using the old Ansii-standard "Shaun", while you are using the MS-specific "Sean".|||BTW, you spell sean the wrong way.
Hmm try telling that to my Welsh co-worker Sion. :D|||Or my sister-in-law, Cion
Monday, March 26, 2012
Easy Question on inequality
Labels:
co-workers,
comparison,
database,
inequality,
ltgt,
method,
microsoft,
mysql,
oracle,
rolleyes,
server,
sql,
suitedi,
t-sql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment