This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes How to Get values from defined Data Type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "How to Get values from defined Data Type" Watch "How to Get values from defined Data Type" New topic
Author

How to Get values from defined Data Type

Raajesh Chandran
Ranch Hand

Joined: May 04, 2001
Posts: 103
Hi!
I created address_ty type for address.In that I used street1(varchar),street2(varchar),city(varchar),state(varchar),pincode(number).Particularly I want to get the city.
I used the Query like
select address.city from <Table Name>.But it is giving invalid column name error
Am using Oracle*i in windows NT.I don't what's wrong in this.
Thankx in advance
Raajesh


chandran..
Gordon Jenkinson
Greenhorn

Joined: Feb 03, 2002
Posts: 14
Post the code or a more detailed example. It's not clear what you are trying to do.
A type does not contain data unless you fetch into it. You will only get an invalid column name error if you have an invalid column name error if the column name does not exist in a table.


Gordon Jenkinson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Get values from defined Data Type
 
Similar Threads
help with SQL Server
need help in JPA ANNOTATION regarding Inheritance.
msyql jdbc problem.
db-create-table: [java] SQL Error at line 340: java.sql.SQLException: Table not
problem in creating table with FULLTEXT KEY index