PALMisLIFE 討論區

搜索
鹹魚爸魅力四射舞蹈教室
查看: 4475|回復: 0
打印 上一主題 下一主題

【求助】火車時刻表的資料庫??

[複製鏈接]

210

主題

0

好友

5173

積分

該用戶從未簽到

文章
6777
1#
發表於 2002-5-30 10:32 |顯示全部樓層

Re:【求助】火車時刻表的資料庫??

給你 pdb 的 file format
  
=========================================================
  
A .pdb file consists of a Database Header (78 bytes) followed by a table of Record Entry Headers (one for each database record).  The data for all records follows the table of Record Entry Headers.
  
   --- Database Header (78 bytes) ---
  
   Field           Bytes Value
   -----           ----- -----
   DB Name            32 <Database Name>
   Flags               2 $00, $00
   Version             2 $00, $00
   Creation Time       4 $06, $D1, $44, $AE
   Modificaton Time    4 $06, $D1, $44, $AE
   Backup Time         4 $00, $00, $00, $00
   Modification Number 4 $00, $00, $00, $00
   App Info Offset     4 $00, $00, $00, $00
   Sort Info Offset    4 $00, $00, $00, $00
   Type                4 <Database ID>
   Creator             4 <Application ID>
   unique ID seed      4 $00, $00, $00, $00
   next record list id 4 $00, $00, $00, $00
   Number of records   2 <Number of Records>
  
   --- Record 0 Entry Header (8 bytes) ---  (One entry for each record)
  
   Field              Bytes Value
   -----              ----- -----
   Offset                 4 <offset to record 0 from the beginning of the file>
   Record attrib (1 byte)
   & unique ID (3 bytes)  4 $40, $6F, $80, $00
  
       .
       .
       .
  
   --- Record n Entry Header (8 bytes) ---  (One entry for each record)
  
   Field              Bytes Value
   -----              ----- -----
   Offset                 4 <offset to record n from the beginning of the file>
   Record attrib (1 byte)
   & unique ID (3 bytes)  4 $40, $6F, $80, $00
  
  --- Record 0 Data ---  (One entry for each record)
  
      .
      .
      .
  
  --- Record n Data ---  (One entry for each record)
  
  --- End of File ----
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 免費註冊

與站長聯繫| PALMisLIFE 掌上生活      下載:更快、更棒、更好玩

GMT+8, 2024-5-10 16:51 , Processed in 0.039789 second(s), 29 queries , Gzip On.

Powered by Discuz!

© 2001-2012 Comsenz Inc. style by eisdl

回頂部