标签:
创建数据库:
CREATE DATABASE database_name
添加数据库表:
CREATE TABLE table_name ( column_name1 data_type, column_name2 data_type, column_name3 data_type, ....... )
实例:
// Create table in my_db database mysql_select_db("my_db", $con); $sql = "CREATE TABLE Persons ( FirstName varchar(15), LastName varchar(15), Age int )"; mysql_query($sql,$con); mysql_close($con); ?>
标签:
原文地址:http://www.cnblogs.com/yueryuermaomao/p/4649000.html