| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Anthony Ward | Date: | May 27 2003 2:33pm |
| Subject: | Select statement driving me crazy | ||
| View as plain text | |||
Hi, I'm tired of this statment i don't see where i'm wrong. Anyhow, here is what i have: I have a table called testing it has column userid email subject message date sendby code now I have a select statment on just few of this column not all. SELECT userid,subjet,date,code FROM testing WHERE userid="testid" There error is: You have an error in your SQL syntax near userid,subject,date,code From testing WHERE userid="testid" line1; Now I don't see the error, any help is appreciated. By the way, the statment is use in my program, which the language is PERL, so the actual statment is $sth=$dbh->prepare(qq(SELECT userid,subjet,date,code FROM $table WHERE userid="$testid")) any help is well appreciated. Anthony
| Thread | ||
|---|---|---|
| • Select statement driving me crazy | Anthony Ward | 27 May |
| • Re: Select statement driving me crazy | Maximo Migliari | 27 May |
| • Re: Select statement driving me crazy | colbey | 27 May |
| • Re: Select statement driving me crazy | Matthew Smith | 27 May |
| • Re: Select statement driving me crazy | Anthony Ward | 27 May |
| • Re: Select statement driving me crazy | colbey | 27 May |
| • Re: Select statement driving me crazy | Anthony Ward | 27 May |
| • Re: Select statement driving me crazy | colbey | 27 May |
| • Auto decrement | Gary Broughton | 27 May |
| • Re: Auto decrement | Román Sánchez | 27 May |
| • Re: Select statement driving me crazy | Keith C. Ivey | 27 May |
| • Re: Select statement driving me crazy | James Moe | 28 May |
| • RE: Select statement driving me crazy | Mike Hillyer | 27 May |
| • Re: Select statement driving me crazy | Anthony Ward | 27 May |
| • Re: Select statement driving me crazy | Anthony Ward | 27 May |
| • RE: Select statement driving me crazy | Mike Hillyer | 27 May |
