|
Team Leader
|
![]() |
| 4Nov2009,14:12 | #11 |
|
They are similar but not the same, in your case as it seems you are looking for people having PHP skills, you should use the 1st query!
|
|
Newbie Member
|
|
| 4Nov2009,17:12 | #12 |
|
Thanks pradeep but I have checked the execution time for two queries,1st query takes much time than 2nd query.
|
|
Team Leader
|
![]() |
| 4Nov2009,22:44 | #13 |
|
Yes the regexp operator consumes more resources than a like!
|
|
Newbie Member
|
|
| 8Nov2011,16:47 | #14 |
|
Hi!
I have a table with one text field. This field can have urls I need get only de urls but no the rest of the field. I have gotten this with a query first and then a php function but I think will be more efficient get the urls with only one query. Also, If I use this solution I get repeated urls and I should create other function to delete that then is quite unefficient... My database is so big, around 3.5gb then I need be very efficient... For example: Quote:
PHP Code:
But with this solution I get "url1", "url2" and "url1" I would use a regular expression in a query to obtain them directly .. Something like that: PHP Code:
But with this query mysql return this error: "Got error 'repetition-operator operand invalid' from regexp" and I don't know why... I hope you can help me... Thank you! Regards! |

