Hi everyone,
i just join this forum today and found that lots of knowledge i can get from here. awesome!! and, hopefully u guys can help me with this problem.. (sorry for my improper english too)
i'm using PHP to develop a site and my d/base is ORACLE. One of the function is to check the existance of a table. If found, then i should run a script to drop that table. This is kind of new thing to me..
this is what i do currently;
function drop_table($conn,$tbl_name){
$del="y";
if exists(select * from $tbl_name) {
//drop table $tbl_name
$strSQL = "drop table $tbl_name";
$stmt = ociparse($conn,$strSQL);
if(!ociexecute($stmt)){$del="n";}
}
return $del;
}