Oracle如何自动生成编号?
sql server2000有一个字段的类型可以字段自动生成编号:
在oracle不知道是那一个字段类型可以自动生成编号:
例如:
表:Table1
字段:AA --???选择那一个字段类型可以“自动生成编号”
BB varchar2(20)
Insert Into Table1(BB)Values('a');
Insert Into Table1(B)Values('b');
SQL> Select * from Table1;
AA BB
--------------------------------------- ----------
1 a
2 b
-------------------------------------能否可以自动生成“1、2、3、4……”
我将字段“AA”数据类型改为“rowid”
还是不能自动生成编号“1、2、3、4……”
在oracle11g没有见有“rownum”数据类型
请问还要设置那里?
序列。
回复内容太短了!
回复内容太短了!
回复内容太短了!
回复内容太短了!
弄个序列就可以了 create sequence sequ_test;
相关问答:
exp user/password@dbname file=c:\table.dmp tables=jbitaku,jbitakum grants=y
然後按回車鍵 說明: user/password@dbname 分別表示用戶名,密碼和服務名 f ......
请问这个缓冲池是怎么回事啊?可以连接缓冲池利用其中的数据吧?怎么用?
这个是oracle自动做的,一般应用程序是操作不了的。
不能直接连接吗?
引用
不能直接连接吗?
不能
那缓冲池里的数据也不能查询 ......
在执行包的时候引用oracle spatial空间函数出错,出错情况如下
Errors in file
/user/oracle/app/oracle/admin/grid/udump/grid1_ora_143768.trc: ORA-29902:
error in executing ODCIIndexStart() routine ORA-0 ......
各位大哥,帮个忙。
下个Oracle for vista 版本的安装试试
10G和11G的
http://www.oracle.com/technology/software/products/database/index.html
------------------------------------------- ......
eclipse 3.3启动web工程,要连接oracle9i数据库报
严重: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12518, TNS:listener could not hand off cli ......