Monks,
Imagine I have just created a mysql table using the DBI in a cgi program:
$dbh = DBI->connect($db_datasource, $db_user_name, $db_password) or di
+e("Could not connect!");
$tbl_create = "
CREATE TABLE responses (
response smallint unsigned,
respondent smallint unsigned,
index response_index (response)
) ";
my $command = $dbh->prepare($tbl_create) or die("Could not prepare!");
$command->execute() or die("Could not create!");
Now I'd like to query the database using the DBI in a cgi program to ensure that my table was created correctly, but can't seem to find how. Would some be so kind?
Thanks,
Don.