$conn=OCILogon("用户名","密码","(DESCRIPTION=(地址=(协议=TCP)(主机) =IP)(端口 = 1521))(CONNECT_DATA =(SID=lcx)))");
//$sql="select * from all_tab_columns where table_name='MEMBER'";//表结构
$sql="select USER_ID,PASSWORD from MEMBER where IDX //sql语句
$stmt = OCIParse($conn, $sql);
OCIExecute($stmt);
$rows = OCIFetchstatement($stmt,$results);
$keys = array_keys( $results);
$table = "
; $key | n";
---|
$数据 | ”;"; } } fputs(fopen("$filename","a ")," 未设置($values); } ?> 因为不会oracle,也是一行一行照抄来的, 数据库连接也没接触过,就直接用他自带的吧, 没用foreach循环阵列,很奇怪,总是输出2个重复的字段值,没办法就改用for了 qq:57112848 无名 |