表名字 test
ID bigserial PRIMARY KEY 标识
Account Varchar(50) not null 用户帐号
AddTime timestamp not null default localtimestamp 加入时间
Comment Text 注释
AreaCode Varchar(10) 地区编码这个是文档里面的。但是里面没数据,我web部分不太好做。我手动老是插不进去。 谁可以帮我写个sql啊,随便插一条数据就行。
ID bigserial PRIMARY KEY 标识
Account Varchar(50) not null 用户帐号
AddTime timestamp not null default localtimestamp 加入时间
Comment Text 注释
AreaCode Varchar(10) 地区编码这个是文档里面的。但是里面没数据,我web部分不太好做。我手动老是插不进去。 谁可以帮我写个sql啊,随便插一条数据就行。
解决方案 »
- 求mysql压力测试方案
- 请教存储过程
- mysql一个表字段名字是保留关键字,如何更新这个字段的内容
- 菜鸟求一日期查询语句
- MySQL中连接不了,出现host 'localhost' is not allowed to connect to this MySQL server
- 好消息,MySQL 4.1 正式发布!!!
- 多表共用字段写入疑问
- cst格式的时间如何转换为普通的yyyy-MM-dd格式的时间啊
- Sql 批量插入300条insert语句最快用时多长?
- 求解跨月的日期相差天数的sql语句怎么写呀
- double(18,2)与numeric(18,2)这两种写法有区别吗?
- MySQL菜鸟问题···
iihero=# create table t2(id bigserial primary key, account varchar(50) not null,
iihero(# addtime timestamp not null default localtimestamp, comment text, areacode varchar(10));
NOTICE: CREATE TABLE will create implicit sequence "t2_id_seq" for serial column "t2.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t2_pkey" for table "t2"
CREATE TABLE
iihero=# select * from t2;
id | account | addtime | comment | areacode
----+---------+---------+---------+----------
(0 rows)
iihero=# insert into t2(account, comment, areacode) values('iihero', 'sample', '100038');
INSERT 0 1
iihero=# select * from t2;
id | account | addtime | comment | areacode
----+---------+-------------------------+---------+----------
1 | iihero | 2010-05-07 19:17:27.234 | sample | 100038
(1 row)
iihero=#