File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes How to create schema in MyEclipse Derby Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to create schema in MyEclipse Derby" Watch "How to create schema in MyEclipse Derby" New topic

How to create schema in MyEclipse Derby

udaykiran pulipati

Joined: Dec 21, 2012
Posts: 12


I want create a new schema in myeclipse derby but gives an error when datatype int is used.

here is my code:

I need PHONENO column with size 10 and PINCODE column with size 6

UdayKiran Pulipati
Anthony Roberts

Joined: Aug 29, 2011
Posts: 14
Datatype INT or INTEGER doesn't take a parameter. Different numeric types can hold numeric values between certain ranges. For INTEGER, it is -2147483648 to 2147483647. If you actually want to store the numeric characters, then use one of the character types, not numeric types. However, given the names of your columns, phoneno and pincode, I would guess that you really need to use character data, anyway, as they won't be used as integers.
It is sorta covered in the JavaRanch Style Guide.
subject: How to create schema in MyEclipse Derby
It's not a secret anymore!