#!/usr/bin/perl use DBI; require "/usr/logins/usercgi/oracle_setup.pl"; use CGI; $cgi=new CGI(\*STDIN); $userid = $cgi->param('userid'); $passwd = $cgi->param('passwd'); print "Content-type: text/html\n\n
$tname
\n";
$sth2 = $dbh->prepare("select column_name, data_type, data_length from user_tab_columns where table_name = \'$tname\'");
$sth2->execute;
$sth2->bind_columns(undef,\$cname,\$dtype,\$dlength);
print "
$cname | $dtype($dlength) |