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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic SQL query syntax?

Status
Not open for further replies.

mossimo

Programmer
Dec 31, 2003
17
US
I have a simple amateur question. This is my SQL code:
[COLOR=black white][tt]SELECT PassWrd, UID FROM tblUsers WHERE UID='"&Session("UID")&"'[/tt][/color]

And this is the same code after MS Access applied its formatting:
[COLOR=black white][tt]SELECT PassWrd, UID FROM tblUsers WHERE (((UID)='"&Session("UID")&"'));[/tt][/color]

They both work fine so my question is there any real difference or is on more correct than the other.

Cheers
mossimo
 
EZ Q EZ A what can I say...
Thanks, tsar

mossimo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top