Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    16

    Unanswered: Is there anyway that I can...

    Hi all

    I have data which is currently all in one field in my table. I would like to seperate this data into a new table by splitting up the text so that it resides in the correct field in the new table. So for eg I have the author, name of book, year it was published etc all in one field in my table, but would like to seperate it into different fields in my new table so that the text which has the author goes in the author field of my new table. There is a fullstop which seperates the author and the title of the book and a ',' that seperates title of book and year it was published and the year the book is published is always in brackets. Is there a sql command where I can seperate the data and input it into my new table i.e. select the text from the first char to the . so that i can do an insert.

    Hope this makes sense!

    Many thanks in advance!
    t.

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    lookup the SPLIT command that should get you started.
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Apr 2009
    Posts
    16
    Hi Myle

    Sorry for the late response, and than thank u very much for replying to my post with your help!

    I ended up using a combination of commands including the split command to achieve what I wanted to do!

    Many thanks again!

    t.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •