Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML transform to SQL by XSL

XML transform to SQL by XSL

Scheduled Pinned Locked Moved XML / XSL
xmldatabasetutorialquestionannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AndieDu
    wrote on last edited by
    #1

    i have this xml here, and now i would like to use xsl to transform into sql statement like this: update OrderDetails set Quantity = 2 where OrderID = 10248 and ProductID = 11 Here is the XML document: 2 Here is a bit i did: update as i am still new in this field, can someone guide me through? Many thanks

    L 1 Reply Last reply
    0
    • A AndieDu

      i have this xml here, and now i would like to use xsl to transform into sql statement like this: update OrderDetails set Quantity = 2 where OrderID = 10248 and ProductID = 11 Here is the XML document: 2 Here is a bit i did: update as i am still new in this field, can someone guide me through? Many thanks

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      AndieDu wrote:

      as i am still new in this field, can someone guide me through?

      Make sure the Database product you are using does not have it's own facility to import XML before you go creating SQL statements, most of the major products support that.

      led mike

      A 1 Reply Last reply
      0
      • L led mike

        AndieDu wrote:

        as i am still new in this field, can someone guide me through?

        Make sure the Database product you are using does not have it's own facility to import XML before you go creating SQL statements, most of the major products support that.

        led mike

        A Offline
        A Offline
        AndieDu
        wrote on last edited by
        #3

        sorry mate, i am not quite get what do you mean, in here actually i need a example cheers

        L 1 Reply Last reply
        0
        • A AndieDu

          sorry mate, i am not quite get what do you mean, in here actually i need a example cheers

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          AndieDu wrote:

          in here actually i need a example

          http://www.google.com/search?hl=en&q=SQLXML&btnG=Search[^]

          led mike

          A 1 Reply Last reply
          0
          • L led mike

            AndieDu wrote:

            in here actually i need a example

            http://www.google.com/search?hl=en&q=SQLXML&btnG=Search[^]

            led mike

            A Offline
            A Offline
            AndieDu
            wrote on last edited by
            #5

            Thanks very much, i appreciated your effort. cheers Andie

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups