DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Appending Data in Columns

  1. #1
    Join Date
    Aug 2000
    Posts
    132
    Hi Folks,

    I'm trying to design a Search engine. We have one table that stores prod_id, attr_cd and attr_val. Some of the products attributes are searchable and some are not. I created a search table prod_id, attr_val. I'm trying to design a trigger that will query our attribute info table, if an attr_cd is searchable throw it into the search table. The problem I'm having is that one product will have several searchable attributes and I want to make the Search table one row for one product. How to append data into a column? Thanks for the help.

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    In your update if it were a VARCHAR type, then you can do the following

    UPDATE table ....
    SET column = :0ld||','||:new;

    Good luck
    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


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