php-src/ext/oci8/tests/create_table.inc

20 lines
500 B
PHP
Raw Normal View History

2003-12-19 17:03:12 +00:00
<?php
2005-09-06 19:33:18 +00:00
if ($c) {
$ora_sql = "DROP TABLE
".$schema.$table_name."
";
$statement = OCIParse($c, $ora_sql);
@OCIExecute($statement);
2003-12-19 17:03:12 +00:00
$ora_sql = "CREATE TABLE
2005-09-06 19:33:18 +00:00
".$schema.$table_name." (id NUMBER, value NUMBER, blob BLOB, clob CLOB, string VARCHAR(10))
2003-12-19 17:03:12 +00:00
";
2005-09-06 19:33:18 +00:00
$statement = OCIParse($c,$ora_sql);
2003-12-19 17:03:12 +00:00
OCIExecute($statement);
}
?>