Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

invalid boolean datatype when creating a table

579235Aug 20 2007 — edited Aug 20 2007
hii,
I am trying to create a table with columns as name, autogenerated id, and another column with boolean datatype. but it gives error.

1 create table cust_id
2* ( name varchar(30), id number, allposts BOOLEAN)
SQL> /
( name varchar(30), id number, allposts BOOLEAN)
*
ERROR at line 2:
ORA-00902: invalid datatype.

plz help

Comments

Alessandro Rossi Aug 20 2007
Boolean is not an sql datatype. That's all.
you may use a varchar2(1) as an alternative.

Bye Alessandro
MichaelS Aug 20 2007
See the recent thread about Byte datatype.
546595 Aug 20 2007 — edited on Aug 20 2007
Boolean is pl/sql datatype not sql

Boolean is pl/sql datatype not sql
sql
http://download-east.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90125/sql_elements2.htm#54201
pl/sql

http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96624/03_types.htm#10531

also this
2019338
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 17 2007
Added on Aug 20 2007
3 comments
1,394 views