how to copy column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishhhna
    New Member
    • Aug 2007
    • 13

    how to copy column

    hi this is krishhhna,

    plzz tell me how to copy one column data into another column ,the both columns are in the same table..what is the query
  • krishhhna
    New Member
    • Aug 2007
    • 13

    #2
    copy data into amother column

    hi,
    this is krishna..

    how to copy one column data into another column ,both the columns are in same table..
    plzzzz give me a replyyyyy

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      simply use update

      [CODE=oracle]update tablename set col1=col2 [conditions if any];[/CODE]

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        please do not post duplicate posts

        Threads merged.

        MODERATOR.

        Comment

        • holdingbe
          New Member
          • Jul 2007
          • 78

          #5
          Originally posted by krishhhna
          hi,
          this is krishna..

          how to copy one column data into another column ,both the columns are in same table..
          plzzzz give me a replyyyyy

          Hi,
          insert into table_name(colu mn2)
          select column1
          from table_name;

          Comment

          • nramrits
            New Member
            • Sep 2007
            • 18

            #6
            Hai Try This Query

            Update Table_name Set Column_name1=co lumn_name2;

            Comment

            Working...