Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2005, 05:44 AM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prasath15@yahoo.co.in Send a message via Yahoo to prasath15@yahoo.co.in
Default update query error in from clause

Hai friends!
           I have a query
  "UPDATE category set c.pro1 = 'this is a good program' from catpro cp, category c where cp.id = c.id and c.id = 1" .When i try to execute this query , it says there is a syntax error in query expression" pointing to 'from' keyword of the query. Dont know wats the error .
Could anyone help me regarding this . Its very urgent .


with regards
prasath.g
 
Old June 6th, 2005, 06:02 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

change the query to:

UPDATE c set c.pro1 = 'this is a good program' from catpro cp, category c where cp.id = c.id and c.id = 1






Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Query Error Tim Johnson Access 2 December 6th, 2007 02:57 PM
SQL Update query (error message) Neal SQL Server 2000 1 August 3rd, 2007 08:57 PM
error in update query. feras Access ASP 1 May 2nd, 2005 07:05 PM
update query error khautinh SQL Server 2000 2 July 1st, 2004 09:30 PM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.