05-07-2009, 11:29 PM
|
#11 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Randy
ah yes my friend told me to use && i dont quite know the big difference.
|
I like to go for readability.
So AND instead of &&.
OR instead of ||
etc...other than preference, I don't think SQL really cares which way you do it...
I also like to make my SELECT statements capitalized and columns,tables lowercase like this:
SELECT * FROM user WHERE user_id = 5;
Again, just preference.....
|
|
|
|