A
A
Andrey2017-01-17 14:21:53
MySQL
Andrey, 2017-01-17 14:21:53

Sampling from a database?

Good afternoon!
I ran into such a problem, there is a database and in it a table with links to pages and not only links, there are also image formats and css files.
How can I pull out only links so that everything is not pulled into a heap?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2017-01-17
@gromdron

If I understand you correctly, something like:

SELECT page_title 
FROM table 
WHERE 
    ( page_title LIKE '*.php' ) 
    OR ( page_title LIKE '*.html' ) 
    OR ( page_title LIKE '*/' ) 
    OR ( page_title LIKE '*.phtml' ) 
    OR ( page_title LIKE '*.html' )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question