P
pistachio
Hello everyone,
Hopefully a quick one. I have a database in which I want to put some
data into from a file. I've parsed through the file got what I want
and am about to put it into the database. But I want to check the
primary key and see if it's free before I put the data in. The
database has gaps in the primary key sequence from deleting data, I
want to put data into those gaps. Is there a quick way to do this. I
was going to do some like :
1) Go through database see where no data for primary key
2) sort this number into an array
3) use array to specify empty database slots.
Any ideas would be great esp with some code. Or how to do the 1st line
(not /usr/bin/perl -w for the funny ppl out there ).
Thanks
Paul
Hopefully a quick one. I have a database in which I want to put some
data into from a file. I've parsed through the file got what I want
and am about to put it into the database. But I want to check the
primary key and see if it's free before I put the data in. The
database has gaps in the primary key sequence from deleting data, I
want to put data into those gaps. Is there a quick way to do this. I
was going to do some like :
1) Go through database see where no data for primary key
2) sort this number into an array
3) use array to specify empty database slots.
Any ideas would be great esp with some code. Or how to do the 1st line
(not /usr/bin/perl -w for the funny ppl out there ).
Thanks
Paul