• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Autogenerated values..

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI all,
Is there any way to know that , which all fields in a table holds auto generated values?
for eg:
SQL> desc test_AUTO;
Name Null? Type
--------------------- -------- --------------------
VV NUMBER(10)

actually while inserting value to VV imj using sequence.
Here i know that VV is autogenerated.
But if i know only the structure of a table.How can i know that how many fields in that table holds autogenerated values??
thanx.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please try:

It will show you all the synonyms in your schema.
Regards,
Dan
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dan, I think Raseena was looking for default column values that are autonumbered.
You can't do this in oracle (unless you use triggers) but I think other databases support it...
(yes I know this was equally unhelpful)
 
raseena nm
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Simon understands my question.
thanx to all of you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic