易截截图软件、单文件、免安装、纯绿色、仅160KB

一个简单的sql语句 - Oracle / 开发

create table user_b.abcd
( a number constraint abc_pk primary key 
using index
(create index abc_index on user_b.abcd(a) tablespace users),
b number
);

------------------
SQL> @h:\code\6.sql
(create index abc_index on user_b.abcd(a) tablespace users),
  *
第 4 行出现错误:
ORA-00903: 表名无效

语句有什么问题??????
表还没有创建成功。你可以先建表,再建索引
create table user_b.abcd
( a number );
alter table TGL_user_b.abcd
add 
constraint abc_pk primary key (a) tablespace users);

引用
create table user_b.abcd
( a number constraint abc_pk primary key
using index
(create index abc_index on user_b.abcd(a) tablespace users),
b number
);

------------------
SQL> @h:\code\6.s……

把user_b.全部去掉

引用

引用楼主 liukai_happy 的回复:
create table user_b.abcd
( a number constraint abc_pk primary key
using index
(create index abc_index on user_b.abcd(a) tablespace users),
b number
);

-------------……

这样可以了吧?
顺便说下 主键默认就有index的 没必要新建index的

引用
create table user_b.abcd
( a number constraint abc_pk primary key
using index<


相关问答:

jsp链接sql2000的疑问?



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

Oracle离线访问---求助 - Oracle / 基础和管理

大家好,我现在把oracle服务器上面的原始文件,下载到本机了.我想在本机访问数据库怎么设置啊.是不是类似可以建立一个什么虚拟服务器来实现.请大家出出主意
引用
    大家好,我现在把oracle服务器上面 ......

oracle与aix - Oracle / 高级技术

在系统运行的时候总是有一块磁盘始终闪红灯,进入系统后
#topas查看总是有一块磁盘%BUSY为90%以上,
数据库版本:oracle 9.2.0.7 
数据文件挂载的节点:/oradata/pcs/ 逻辑卷号lv04 
#lslv -l lv04 ......

MS SQL作业问题 - MS-SQL Server / 应用实例

如何在SQL2005中设定定时作业,比如说定时清理某些表的数据,
或者是定时的将某些表的数据导出excel!
在线等待,急急急,最好是详细步骤!
之前我做的作业有点问题!
帮UP

参考:http://hi.baidu.com/toiota ......

求一SQL - MS-SQL Server / 基础类

tab1 字段:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 字段:goodsid,goodskind(商品类型)
tab3 字段:goodskind(商品类型),kindname
结果:
得到商品类型在一段时间 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号