我正在尝试使用以下代码在Oracle数据库中创建表:
<?php
include_once("connection.php");
$conn = SQL_CONNECT();
$create_table = oci_parse($conn, "CREATE TABLE IF NOT EXISTS
email_valid(eid int(11) NOT NULL,
email varchar2(255) NOT NULL UNIQUE,
password varchar2(255) NOT NULL,
activation varchar2(255) NOT NULL UNIQUE,
status enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY(eid))");
$r = oci_execute($create_table) or die(oci_error());
?>
当我尝试运行此代码时,收到此错误消息:
Warning: oci_execute() [function.oci-execute]: ORA-00922: missing or invalid option in C:\PORTAL\xampp\htdocs\email\create.php on line 12