If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Syntax Error with SQL Query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-04, 08:51
incubliss incubliss is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Syntax Error with SQL Query

I am trying to query my database using ASP...i did a Response.Write to view the query.....

UPDATE BatterStats SET H=3,K=0,E=0,AVG=.456 WHERE ID=23


It was working fine until i added the AVG part with the decimal and what not. I tried the query in Access and it worked fine. What could the problem possibly be?
Reply With Quote
  #2 (permalink)  
Old 03-14-04, 15:38
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
try this....

UPDATE BatterStats SET H=3,K=0,E=0,AVG=0.456 WHERE ID=23
Reply With Quote
  #3 (permalink)  
Old 03-16-04, 15:26
incubliss incubliss is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Quote:
Originally posted by rokslide
try this....

UPDATE BatterStats SET H=3,K=0,E=0,AVG=0.456 WHERE ID=23
Sorry i actually fixed it...the problem was 'AVG' is a reserved keyword....Access didn't have a problem with it by SQL does.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On