Comparison between texts

Dúvidas, dicas e truques de PL/SQL. Aqui também vão assuntos relacionados a pacotes, triggers, funções, Java-Stored Procedures, etc
Post Reply
mello
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 15
Joined: Mon, 06 Mar 2006 5:26 pm
Location: sp

Someone has a function that compares a text with the other and brings me the difference between them.
Example:




Result:

Select all

linha   texto1                     |       texto2 
1       alguém tem uma funcao      |       alguém tem uma funcao    igual 
2       que compare um texto       |       que compare um texto     igual  
3       com o outro e me traga     |                                diferente 
4       a diferenca entre eles     |       a diferenca entre eles   igual
: D
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

I think this function is not so simple.
There is a program called Winmerge that does just that.

Since he is open-source, maybe you venture to open and find out how this comparison is done. I think the algorithm is well complex!
http://winmerge.sourceforge.net/
:(
Ricardo_Kaka
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 7
Joined: Mon, 20 Feb 2006 10:41 am
Location: São Vicente - SP

In SQL Navigator, there is a function to do this:

- Flame View Difference
gilbertoca
Rank: DBA Sênior
Rank: DBA Sênior
Posts: 372
Joined: Tue, 24 Jan 2006 3:33 pm
Location: Palmas - TO
Contact:

Take a look at this link http://download-west.oracle.com/docs/cd ... sthref1936

from then you can create your function.

Gilberto
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests