Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hello everybody,I am a beginner:How can i get database(db.db) structure?

 
ZhengQi Huang
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i know the table names and fields in db.db before i start my scjd???I use windows2000 professional.thanks!!!
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ZhengQi,

How can i know the table names and fields in db.db before i start my scjd???I use windows2000 professional.thanks!!!

There is only one unnamed "table" in db.db. I would tell you the field names, but I think it's better for you to carefully analyze the Data class and figure it out for yourself. You can write a simple class with a main method that can dump the entire database to stdout in just a few minutes. You need to thoroughly understand how Data and its support classes, DataInfo and FieldInfo work. You will base your entire design around these, so it is important that you are intimately knowledgeable about them.
Hope this helps,
Michael Morris
[ August 19, 2002: Message edited by: Michael Morris ]
 
ZhengQi Huang
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!I have another problem:can i use SQL to access db.db?I did not use RandomAccessFile before i got this certification.
[ August 20, 2002: Message edited by: ZhengQi Huang ]
 
Rick Bos
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you cannot use SQL to access it.
 
ZhengQi Huang
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic