SQL Set Multiple Set Query

Posted on 2008-11-13
Last Modified: 2012-05-05
I'm using the following SET query which works perfectly
UPDATE [Data] SET [Action]="Query" WHERE [Acc Num]=230061;

But now I want to change it so it updates 4 fields in one go, tried the following but it doesn't
work, any ideas?

UPDATE [Data] SET [Action]="Query" AND [Comments]="test" AND [Promise Payments]="0.00" AND [Date]=date() WHERE [AccNum]=230061;

Question by:ShockUK
    LVL 20

    Accepted Solution

    UPDATE [Data] SET [Action]="Query" , [Comments]="test" , [Promise Payments]="0.00" , [Date]=date() WHERE [AccNum]=230061;
    LVL 26

    Assisted Solution

    UPDATE [Data]
    SET [Action]="Query" , [Comments]="test" , [Promise Payments]="0.00" , [Date]=date()
    WHERE [AccNum]=230061;

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
    'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now