How to generate 1...N (sequence Numbers) without using the sequence concept in SQL?

Showing Answers 1 - 15 of 15 Answers

avinash khatri

  • Jan 19th, 2007
 

we  can   do it by conctening the variable with the query in the plsql program.

  Was this answer useful?  Yes

Deepak

  • Jan 24th, 2007
 

Try this in Oracleselect rownum from where rownum < &N ;

  Was this answer useful?  Yes

kaledhananjay

  • Feb 6th, 2007
 

Try this SELECT NVL(MAX(EMPNO)+1, 0) FROM EMP; It create empno from 0..N.

  Was this answer useful?  Yes

kaledhananjay

  • Feb 6th, 2007
 

SELECT NVL(MAX(EMPNO)+1,0) FROM EMP;This select statement generates empno from 0...N.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions