Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8370603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:57:08+00:00 2026-06-09T13:57:08+00:00

sorry for the title.. my problem is on how to get a specific part

  • 0

sorry for the title..

my problem is on how to get a specific part of a URL using mysql select statement for example the url

http://www.google.com/search?q=lpol&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs

and

http://www.google.com/search?q=query+to+count+specific+character&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs#hl=fil&client=ubuntu&channel=fs&sa=X&ei=J1knUPu9GsiUiAe3xYB4&ved=0CEQQvwUoAQ&q=mysql+query+to+go+through+specific+character+position&spell=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=c4fd06cd155ee554&biw=1014&bih=424

these two are different url’s but they both have google.com in their url so how can i get the google.com so i can count these 2 url in to 1 using mysql select statement

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:57:10+00:00Added an answer on June 9, 2026 at 1:57 pm

    The SUBSTRING_INDEX function should work

    SELECT SUBSTRING_INDEX('http://www.mysql.com/abcd/asd/', '/', 3); -> 'www.mysql.com'
    

    Use this in combination with the column that you have.

    SELECT SUBSTRING_INDEX(column, '/', 3) FROM table; -> URLS without slashes
    

    im no entierly sure about the 3 it could be 2.

    Goodluck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry if this title doesn't describe the problem properly but I wasn't sure
Sorry for the vague title, as I really can't explain this problem succinctly. Basically
sorry for the bad title, I don't know how to describe my problem. I
Sorry for a long question and not a very descriptive title, but my problem
Not sure the title fully describes the problem/question I'm trying to ask, sorry. One
Sorry the title's so convoluted... I must've tried for ten minutes to get a
I'm sorry if I didn't explain my problem well enough in the title. In
Sorry, I am confused to create a correct title. This is my problem, I
First off, sorry if the title is confusing! I'm working on a part of
I'm sorry if the title is a bit confusing, but this is my problem:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.