1create database bbs;
2
3use bbs;
4
5create table article
6(
7id int primary key auto_increment,
8pid int,
9rootid int,
10title varchar(255),
11cont text,
12pdate datetime,
13isleaf int
14);
15
16insert into article values (null, 0, 1, 'title', 'context', now(), 1);
这里注意datetime在insert中用到now(),记住了
posted on 2010-07-15 23:51
hypon 阅读(205)
评论(0) 编辑 收藏 所属分类:
DBMS