SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 17th, 2000, 02:33 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
where clause: missing semicolon at end of SQL statement

<i><b>Originally posted by : Chris (csbelli@hotmail.com)</b></i><br />I am trying to do an insert statement with a where clause from ASP to Access 2000. This is my insert statement: strSQL = strSQl & "INSERT INTO Results2 (q1a,q1b,q1c,q1d) VALUES('" & q1a & "','" & q1b & "','" & q1c & "','" & q1d & "') WHERE ssn = 'ssn1' ; " I have tried every combination I can think of but I always get missing semicolon at end of SQL statement or Expected end of statement. Any help would be greatly appreciated. Thanks.<br />

Reply With Quote
  #2  
Old May 9th, 2000, 12:01 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Bob (bmacneal@dainrauscher.com)</b></i><br />I don't think you need a semi colon at the end of the query. Try it without. Other than that it looks ok.<br /><br /><br />------------<br />Chris at 4/17/2000 12:33:43 AM<br /><br />I am trying to do an insert statement with a where clause from ASP to Access 2000. This is my insert statement: strSQL = strSQl & "INSERT INTO Results2 (q1a,q1b,q1c,q1d) VALUES('" & q1a & "','" & q1b & "','" & q1c & "','" & q1d & "') WHERE ssn = 'ssn1' ; " I have tried every combination I can think of but I always get missing semicolon at end of SQL statement or Expected end of statement. Any help would be greatly appreciated. Thanks.<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > where clause: missing semicolon at end of SQL statement


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway