joining two tables and inserting a non-xml data type column into an xml data type column

  • what is the syntax to insert a value from table 1 into a xml data type field in table2? Another words, adding to the field in table2 which is an xml data type, from the value of the field in table1.

  • You can use this when assigning the value to the column in your UPDATE statement:

    destination_column_name = CAST(source_column_name as XML)

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply