sequence [message #507246] |
Fri, 13 May 2011 06:35  |
 |
x-oracle
Messages: 380 Registered: April 2011 Location: gujarat
|
Senior Member |
|
|
i have create one sequece using this syntax
CREATE SEQUENCE seq_emp_id START WITH 100;
after that when i create a table using this syntax
CREATE TABLE employee
(
emp_id integer default NEXTVAL ('seq_emp_id'),
name text
);
i got an error like this
*
ERROR at line 2:
ORA-04044: procedure, function, package, or type is not allowed here
so how can i resolve my this error
|
|
|
Re: sequence [message #507248 is a reply to message #507246] |
Fri, 13 May 2011 06:42   |
 |
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
Quote:NEXTVAL ('seq_emp_id') Quote:name text datatype ?
Quote:ORA-04044:
procedure, function, package, or type is not allowed here
Cause: A procedure, function, or package was specified in an inappropriate place in a statement.
Action: Make sure the name is correct or remove it.
[Updated on: Fri, 13 May 2011 06:46] Report message to a moderator
|
|
|
|
|