Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / September 2004



Tip: Looking for answers? Try searching our database.

Update has more then one entry..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
charmed0rz - 30 Sep 2004 14:25 GMT
Could i just do it like this?

  update Guild
     set guildid = ""
    set guildname = ""
    set memberfor = ""

or do i need commas or what? also.. how do i set them to a blank field, could
i just do ""'s?  i get the error

 Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
Access Driver] Syntax error (missing operator) in query expression '[] set
guildname = [] set memberfor = [] set rank = [].
Defuse - 30 Sep 2004 14:29 GMT
update Guild
set guildid = "",
      guildname = "",
      memberfor = ""

All you need is one SET and then you separate the fields by commas. Be sure
that on the last field do not put a comma after the value - you'll get an
error.  To set a blank field you can either use " " or you can just ignore it.
You don't have to update every field at the same time.

HTH
charmed0rz - 30 Sep 2004 14:45 GMT
im getting tired of the too few paremeters errors.. *sigh*

<cfquery datasource="userlogin">
  update Guild
     set guildid = "",
    guildname = "",
    memberfor = "",
    rank = "",
    opiniononguild = ""
    where user_id = '#session.user_id#'
</cfquery>

those fields, plus user_ID are in guild table... why am i  getting this :S all
fields are text...

[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
Access Driver] Too few parameters. Expected 1.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.