2

I want to get base url from CompleteURL using sql.

Example: completeUrl: SELECT INTO Variable in MySQL DECLARE causes syntax error?. I want get :https://stackoverflow.com/

select left(CompleteURL, charindex('/', CompleteURL, charindex('://', CompleteURL ) + 3 )  - 1 )
from urls2;
Community
  • 1
  • 1
Manel Chaabene
  • 187
  • 1
  • 2
  • 14

0 Answers0