update two columns at time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahul8626
    New Member
    • Jan 2008
    • 1

    update two columns at time

    I have two columns failcount and login i have to update them together.
    How should i use update query.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Originally posted by rahul8626
    I have two columns failcount and login i have to update them together.
    How should i use update query.
    update <tablename> set failcount=value ,login='login_n ame' where <your condition>

    Comment

    • amitpatel66
      Recognized Expert Top Contributor
      • Mar 2007
      • 2358

      #3
      Hi Rahul8626,

      Welcome to TSDN!!

      Please make sure you follow POSTING GUIDELINES when ever you post in this forum

      Thanks
      MODERATOR

      Comment

      • subashsavji
        New Member
        • Jan 2008
        • 93

        #4
        Originally posted by rahul8626
        I have two columns failcount and login i have to update them together.
        How should i use update query.

        update emp
        set empno=1000,enam e='djdj'
        where ename='jjjj';

        Comment

        Working...