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. Database & SysAdmin
  3. MySQL
  4. How to do this??

How to do this??

Scheduled Pinned Locked Moved MySQL
databasemysqlhelptutorialquestion
3 Posts 2 Posters 5 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.
  • V Offline
    V Offline
    varshavmane
    wrote on last edited by
    #1

    Hi all, I am totally new to mysql and I have to do something like this. I am sending this '3$4$10$5' string to stored procedure in mysql. What I want is to insert this values into a table like this: 1 1 3 1 1 4 1 1 10 1 1 5 I have to split the above string and insert a record one by one into the table. Can someone please help me. Thanks in advance.

    R 1 Reply Last reply
    0
    • V varshavmane

      Hi all, I am totally new to mysql and I have to do something like this. I am sending this '3$4$10$5' string to stored procedure in mysql. What I want is to insert this values into a table like this: 1 1 3 1 1 4 1 1 10 1 1 5 I have to split the above string and insert a record one by one into the table. Can someone please help me. Thanks in advance.

      R Offline
      R Offline
      Rajesh Anuhya
      wrote on last edited by
      #2

      use the replace function EX: select replace('1$2$3$','$',' ');

      Rajesh B --> A Poor Workman Blames His Tools <--

      V 1 Reply Last reply
      0
      • R Rajesh Anuhya

        use the replace function EX: select replace('1$2$3$','$',' ');

        Rajesh B --> A Poor Workman Blames His Tools <--

        V Offline
        V Offline
        varshavmane
        wrote on last edited by
        #3

        Thanks for the reply. What I want is to insert multiple records. This is very small data but if data is huge then how can I do this. ike in SQL we can send XML to stroed procedure and then parse it in the stored procedure and insert the records. Can you please tell me how to do this in MYSQL? Thanks again.

        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