Has anyone here worked with DBISAM?
I have a DBISAM database that I’m working with it,
It has a column called “RFC”, I can’t make it UNIQUE or primary key because this is a shared database with another program.
The issue is that; I want to insert Records to this database, but when I insert it, I insert duplicate records.
I use this:
'Dim InsertaRegistro As String= "INSERT INTO RFC (RFC, ApPaterno , ApMaterno , Nombre , Calle , NoExt , NoInt , Codigo, Estado, CURP, Colonia, Delegacion, Localidad, Telefono, Pais, Nacionalidad, IDFiscal) VALUES ('"+ RFC+"','"+ Paterno +"','"+ Materno +"','"+ Nombre +"','"+ Calle+"','"+ NumExt +"', '"+NumInt +"', '"+ CP +"', "+ Estado+", '"+ CURP+"', '"+ Colonia +"','"+ Delegacion+"', '"+ Localidad +"', '"+ Telefono+"', '"+ Pais +"', '"+ Nacionalidad +"', '" + IDFiscal +"')"
But that I want to do is If Exists a record that has one “RFC” value, then jump it and don’t write that record and only write records that not exists on database.
In mySQL uses “INSERT IGNORE INTO” but in this language I don’t know how to do that.
Any suggestions?
Thanks