Re: Creating tables
| From: | Brian S. Dunworth | Date: | Wed, 25 Apr 2001 17:26:15 +0000 |
| Subject: | Re: Creating tables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8881@lists.php.net to get a copy of this message | ||
At 08:00 AM 4/25/01 +0200, Herman Wapenaar wrote:
I am using a website based in the states to which is PHP enabled. I am using MySQL. Is there a way to create a table with PHP? I do not see any command for that.Well, as an Oracle administrator, I may be going out on a limb here regarding MySQL, but doesn't it accept standard SQL syntax to create, alter or drop tables? CREATE TABLE abc AS SELECT * FROM def WHERE ghi LIKE '%jkl';
(to copy some elements from one table to a new table)CREATE TABLE test (col1 NUMBER NOT NULL PRIMARY KEY,
col2 CHAR(2) NOT NULL);ALTER TABLE test ADD col3 NUMBER(5) NOT NULL; DROP TABLE test; - Brian ------------------------------------- Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 <brian@theprintinghouse.com> -------------------------------------