sql statement help please - extract substring of data

Discussion in 'MySQL' started by golles, Oct 8, 2007.

  1. #1
    can anyone let me know if there is a way (using a SQL statement) that I can extract a substring of data from a text field.

    we hold referrer data in a table and I need to extract several parameters from the referring url e.g. domain name, search query etc.

    At the moment the referring url is one field within the database table and holds all of the referrer url data - I just need to extract substrings of this url and there is no fixed format to the url that is stored in the database.

    I need to be able to do this with SQL statements rather than through a php script or similar.

    we are using mysql

    Thanks a lot.
     
    golles, Oct 8, 2007 IP
  2. digipren

    digipren Active Member

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    digipren, Oct 8, 2007 IP