You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use DBI;
|
|
$db=DBI->connect('DBI:mysql:sample_db;user=root;password=');
|
|
|
|
$sth=$db->prepare("SELECT * FROM employee") or die "Can't prepare sql statement" . DBI->errstr;
|
|
$sth->execute();
|
|
$sth->dump_results();
|
|
|
|
$sth->finish();
|
|
$dbh->disconnect();
|