Results 1 to 2 of 2

Thread: Update Query Syntax

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Unhappy Update Query Syntax

    Hi i got a slight sql problem i get a runtime error
    Syntax error in UPDATE statement


    any ideas??

    thanks all

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    what is the datatype for the SCRNAME field?...to allow it to have the accent mark above the "n" in "Senorbedger" the datatype should be nvarchar.

    Here would be my assumptions based on the field names.

    1) Any field that ends with ID (UserID) would be an int datatype and not accept strings, it would accept only numbers. The field would be better suited as Username = 'sam', rather than UserID = 'sam'.

    2) Level would be an int type also, therefore you wouldn't need (') marks around the number 2....(') marks are only for strings, not numbers.

    3) Same for field name ID...shouldn't be '1', it should be 1
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width