-\n";
- $conn = OCILogon("scott", "tiger");
- $stmt = OCIParse($conn,"select * from emp");
- OCIExecute($stmt);
- print "";
- print "";
- print "| Name | ";
- print "Type | ";
- print "Length | ";
- print "
";
- $ncols = OCINumCols($stmt);
- for ( $i = 1; $i <= $ncols; $i++ ) {
- $column_name = OCIColumnName($stmt,$i);
- $column_type = OCIColumnType($stmt,$i);
- $column_size = OCIColumnSize($stmt,$i);
- print "";
- print "| $column_name | ";
- print "$column_type | ";
- print "$column_size | ";
- print "
";
- }
- print "
\n";
- OCIFreeStatement($stmt);
- OCILogoff($conn);
- print "";
- print "