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

New to SQL and I'm having trouble with my Select Statement

Status
Not open for further replies.

Staceyp

Programmer
Jan 29, 2001
2
US
I am new to SQL and I am running into error with my select statment.

When I try to check it with: response.write SQL
response.end

I get this:SELECT * FROM Registration WHERE Login='zoes'

My actual statement is:

SQL= "SELECT * FROM Registration WHERE Login='" & Replace(login,"'","''") & "'"

I am to new to see what the error is. Can anyone please help me?

Thank you


 
SELECT * FROM Registration WHERE Login='zoes' looks pretty good.
What were you expecting? Jim

oracle, vb
 
I just wanted to verify that that was the correct statement. As I stated before I am very new and wasn't sure what I should be recognizing. So thanks very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top