随着网站规模的扩大,MySql显然不能满足需求,在许多网站都采用大型数据库Oracle的情况下,如何使用PHP来访问Oracle变的越发重要了...
INSERT:(插入) $handle = ora_plogon("system@localhost", "manager") or die;
ora_commiton($handle);
$cursor = ora_open($handle);
$query = "insert into area(areacode,areaname) values("$addcode","$addname")";
ora_parse($cursor, $query) or die;
ora_exec($cursor);
ora_close($cursor);
DELETE:(删除) $handle = ora_plogon("system@localhost", "manager") or die;
$cursor = ora_open($handle);
ora_commiton($handle);
ora_parse($cursor, $query) or die;
ora_exec($cursor);
ora_close($cursor);
查看本文来源