Results 1 to 3 of 3

Thread: Updating column

  1. #1
    Join Date
    Nov 2002
    Posts
    2

    Updating column

    Example:

    Tablename: Test
    Columns: Column_1, Column_2

    Column_1 Column_2
    101 101
    102 102

    Column_2 should become A101, A102 ...

    Result:

    Column_1 Column_2
    101 A101
    102 A102


    update test set column_2 ??????

    Thanks

    Cy

  2. #2
    Join Date
    Nov 2002
    Posts
    8
    update test
    set column_2 = 'A' + column_1

  3. #3
    Join Date
    Nov 2002
    Posts
    2
    Here the solution:

    Update TABLENAME set COLUMN_1 = 'A' || COLUMN_2


    Thanks

    Cy

Posting Permissions

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