免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: zrzdream
打印 上一主题 下一主题

请教扩库问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-04-15 15:04 |只看该作者
IQ dbspace和ase的segment和oracle的dbspace是有差异的。
仔细看看那段create table (in字句的说明) 或者 in "SYSTEM"看看

论坛徽章:
0
12 [报告]
发表于 2008-04-15 15:08 |只看该作者
这个语法是没有错误的啊.因为我用那个语法在其他的表空间里面没有出现类似的问题啊.

论坛徽章:
0
13 [报告]
发表于 2008-04-15 15:09 |只看该作者
呵呵,希望你们能看看我的错误说明啊

论坛徽章:
0
14 [报告]
发表于 2008-04-15 15:11 |只看该作者
我用语句:
CREATE TABLE "DBA"."Gfzkj" (
        "id" char(6) NOT NULL UNIQUE,
        "date" date NOT NULL,
        "value" double NOT NULL,
        PRIMARY KEY ( "id" )
) IN "GP";
建表的时候出错了,错误信息为:
could not execute statement.
ASA Error -1010036:MPX:invalid file_id.Single_node or writer server using a locate or bad fileID.

论坛徽章:
0
15 [报告]
发表于 2008-04-16 09:14 |只看该作者
请问高手们,这个问题怎么解决啊?

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
16 [报告]
发表于 2008-04-16 10:00 |只看该作者
你确认在其他的dbspace上能使用create table in ‘dbspace'的语法?

论坛徽章:
0
17 [报告]
发表于 2008-04-16 10:14 |只看该作者
原帖由 chenfeng825 于 2008-4-15 14:00 发表
去掉in字句

IN clause

The IN clause specifies in which database file (dbspace) the table is to be created. You can specify SYSTEM with this clause to put either a permanent or temporary tabl ...



再次引用,仔细看看说明

IN clause

The IN clause specifies in which database file (dbspace) the table is to be created. You can specify SYSTEM with this clause to put either a permanent or temporary table in the Catalog Store. All other use of the IN clause is ignored. You cannot use this clause to place an IQ table in a particular dbspace. By default all permanent tables are placed in the main IQ Store, and all temporary tables are placed in the Temporary IQ Store. Global temporary tables can never be in the IQ Store.

论坛徽章:
0
18 [报告]
发表于 2008-04-17 09:29 |只看该作者
原帖由 chenfeng825 于 2008-4-16 10:14 发表



再次引用,仔细看看说明

IN clause

The IN clause specifies in which database file (dbspace) the table is to be created. You can specify SYSTEM with this clause to put either a permanent ...

呵呵,你怎么不相信呢,以下是我在sybaseCentral里面在一个table上点右键复制的一个表:
CREATE TABLE "DBA"."Gfzkj" (
        "id" char(6) NOT NULL,
        "Hdate" date NOT NULL,
        "Hvalue" double NOT NULL,
        "Ldate" date NOT NULL,
        "Lvalue" double NOT NULL
) IN "IQ_SYSTEM_MAIN";
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP