Chinaunix

标题: 问几个数据类型的创建方法 [打印本页]

作者: reikami    时间: 2007-01-19 09:50
标题: 问几个数据类型的创建方法
在创建表的时候,我想要创建serial 、图片和text类型的字段,应该怎么写?


cteate table test (testid serial (1), image blob, TestTXT text)??这样吗?
作者: liaosnet    时间: 2007-01-19 10:38
没有blob这种字段类型~
blob空间的两种字段类型是byte,text。
对于serial,指定字段为serial就行了。

create table test
( testid serial <in talbe>,
   image byte <in blobspace>,
   testtxt text <in blobspace>
) <in dbspace>;
作者: reikami    时间: 2007-01-22 09:07
谢谢




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2