Create a table with a untype XML column

          

Create a table with a untype XML column

<<Previous   Next>>

Create a table with a untype XML column, Insert into an untyped XML data type column - March 09, 2009 at 11:00 AM by Amit Satpute

Create a table with a untype XML column, Insert into an untyped XML data type column 

  • Create a table with a untype XML column

    CREATE TABLE X
    {
             [XID] [int] NOT NULL,
             [XINFO] [xml] NOT NULL
    } ON [PRIMARY]
    GO
  • Insert into an untyped XML data type column
    DECLARE @xmlvar varchar[100]
    SET @xmlvar =
    '<NODETAG>
               <A>abc</A>
               <B>xyz</B>
    </NODETAG>'

    INSERT INTO NODETAG (XID,XINFO) values (1, @xmlvar)
    GO. 

<<Previous   Next>>
 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring