0

I don't want last column data in the output file. So, I am trying to skip the last column (ID_CARD) in the format file.But i am not getting the proper output. Just want to confirm is it the right way?

before skipping:

68      SQLCHAR             0       3       ""       68    PBP_ID                       Latin1_General_BIN

69      SQLCHAR             0       25      ""       69    PREVENTIVE_SERVICES          Latin1_General_BIN

70      SQLCHAR             0       216     ""       70    FILLER4                      Latin1_General_BIN

71      SQLCHAR             0       11      "\r\n"   71    ID_CARD_NO                   Latin1_General_BIN

Trying to skip:

68      SQLCHAR             0       3       ""       68    PBP_ID                       Latin1_General_BIN

69      SQLCHAR             0       25      ""       69    PREVENTIVE_SERVICES          Latin1_General_BIN

70      SQLCHAR             0       216     ""       70    FILLER4                      Latin1_General_BIN

71      SQLCHAR             0       0      ""        0        ID_CARD_NO                   Latin1_General_BIN
4

1 回答 1

0

有两种方法可以跳过此列中指定的

第一种方法是将“前缀长度”、“主机文件数据长度”和“服务器列顺序”设置为0

68      SQLCHAR             0       3       ""       68    PBP_ID                       Latin1_General_BIN

69      SQLCHAR             0       25      ""       69    PREVENTIVE_SERVICES          Latin1_General_BIN

70      SQLCHAR             0       216     ""       70    FILLER4                      Latin1_General_BIN

71      SQLCHAR             0       0      ""        0        ID_CARD_NO                   Latin1_General_BIN

您已经尝试过,第二个是删除整行:

9.0
70
....

68      SQLCHAR             0       3       ""       68    PBP_ID                       Latin1_General_BIN

69      SQLCHAR             0       25      ""       69    PREVENTIVE_SERVICES          Latin1_General_BIN

70      SQLCHAR             0       216     ""       71    FILLER4                      Latin1_General_BIN

请注意,在这种情况下,您必须减少总数。要导入的行,71即将成为70标题,但在server column order最后一列中,它将保留列顺序,即。71.

于 2013-09-13T06:47:41.210 回答