1

Topic: String comparison

All greetings!
There was an interesting task - it is necessary to compare two lines about entrance of identical substrings.
We have two lines - 25640123123123 and 00000123123123, it is necessary that the request produced the general substring for the given lines - 123123123.
Rummaged a forum and Google - the decision yet did not find.
There are at somebody ideas?
Thanks in advance.

2

Re: String comparison

Search of the greatest general substring is a task not for SQL.