标签:
创建MySQL数据表需要以下信息:
以下为创建MySQL数据表的SQL通用语法:
CREATE TABLE table_name (column_name column_type);
以下例子中我们将在 TUTORIALS 数据库中创建数据表tutorials_tbl:
tutorials_tbl(
tutorial_id INT NOT NULL AUTO_INCREMENT,
tutorial_title VARCHAR(100) NOT NULL,
tutorial_author VARCHAR(40) NOT NULL,
submission_date DATE,
PRIMARY KEY ( tutorial_id )
);
实例解析:
删除表:drop tables 表名;
插入语句
:insert into student values("","wangjiao",NOW());
INSERT INTO tutorials_tbl(tutorial_title, tutorial_author, submission_date) ->VALUES ->("JAVA Tutorial", "Sanjay", ‘2007-05-06‘);
标签:
原文地址:http://www.cnblogs.com/oracleloyal/p/5062543.html