P
PB0711
Hello all,
I'm trying to use ruby for the first time. I want to make a script
that is going to parse through my file and pick stuff up and place it
into a database. When I put it into the database I would like to first
ask the database if there is something already like it and if there is
an "empty" primary key to use.
The key ID's in the database go something like:
1 2 3 5 6 7 8 10 11 12 18 22 23 24 and so on. I want to put stuff into
ID 4, 9, 13 and so on. I was wondering what modules I should use and
how to go about this.
I come from Perl and I'm pretty use to doing this type of thing in
Perl, expect for asking what ID is "free",
So just ideas of how to do it and what tools you all think I will
need
Thank
I'm trying to use ruby for the first time. I want to make a script
that is going to parse through my file and pick stuff up and place it
into a database. When I put it into the database I would like to first
ask the database if there is something already like it and if there is
an "empty" primary key to use.
The key ID's in the database go something like:
1 2 3 5 6 7 8 10 11 12 18 22 23 24 and so on. I want to put stuff into
ID 4, 9, 13 and so on. I was wondering what modules I should use and
how to go about this.
I come from Perl and I'm pretty use to doing this type of thing in
Perl, expect for asking what ID is "free",
So just ideas of how to do it and what tools you all think I will
need
Thank