Dear All,


my $dbh = DBI->connect("DBI:mysql:xxxxx",,, {    RaiseError => 1 });
 my $sth = $dbh->prepare( qq{
     CREATE TABLE $table_name (
             diploma
ENUM("junior_high","senior_high","junior_college","university","master","doc
tor")
});


When I do the following procedure

my $dbh = DBI->connect("DBI:mysql:xxxxx",,, {     RaiseError => 1 });
my $sth = $dbh->prepare( qq{    SELECT *    FROM $table_name    WHERE
diploma = 2    });
$sth->execute;
my $diploma  = $sth -> fetchrow_array ;
$dbh->disconnect;

I can get $diploma = "senior_high"


Now here is my problem , How could  I get the value of the $diploma = 2   ?

I'll really appreciated if someone can help me.



Reply via email to