Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Get values from defined Data Type

 
Raajesh Chandran
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gordon Jenkinson
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic