Results 1 to 2 of 2

Thread: SQL Statement

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    US
    Posts
    115

    Talking SQL Statement

    I want to update a field to reflect a new value in the record, I'm currently using a statement that looks like this:

    "Update * From table_name"

    However I'm missing something because I get an error that says syntax error.

    Can you help me out with this?

    Thanks
    PinkPanther

  2. #2
    pvb
    Guest
    basic format:

    UPDATE
    TargetTable
    SET
    Field1=Value1,
    Field2=Value2,
    Field3=Value3
    [ WHERE <search condition> ]


    There can be a lot more to an update statement, look in BOL for the complete UPDATE syntax

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