Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5600627
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类: Oracle

2007-05-22 22:40:38

You can use NEXTVAL and CURRVAL in the following context:
1,The SELECT list of a SELECT statement that is not part of a subquery
2,The SELECT list of a subquery in an INSERT statement
3,The VALUES clause of an INSERT statement
4,The SET clause of an UPDATE statement
You can not use NEXTVAL and CURRVAL in the following context:
1,The SELECT list of a view
2,A SELECT statement with the DISTINCT keyword
3,A SELECT statement with GROUP BY, HAVING, or ORDER BY clauses
4,The DEFAULT expression in a CREATE TABLE or ALTER TABLE statement
阅读(2626) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~