FBexport - isc_dsql_prepare 失败 - 无法输出

FBexport - isc_dsql_prepare failed - cant make an output

我正在使用名为 fbexport 的 firebird 工具从数据库中转储 table 数据。我所做的是:

  1. 启动 cmd,导航到 fbexport 所在的目录
  2. 输入命令:

    FBExport.exe -D "c:\DB.GDB" -U sysdba –P masterkey -Si -V WIZYTY -F test.out

不幸的是我收到一个错误:

F:\FBX\exe>fbexport -D "C:\DB.gdb" -U sysdba -P masterkey -
Si -V WIZYTY -F test.out
Checking database charset...WIN1250.
Connecting to: 'LOCALHOST' as 'sysdba'...Connected.
Creating and starting transaction...Done.
Create statement...Done.
Doing verbatim export of table: WIZYTY
SQL: SELECT AMOUNT,ANI_DESC,ANI_ID,AUJESZKY,BADANIE_ID,BADANIE_OPIS,BUDYNEK_ID,C
HEMIA_OPIS,CUST_ID,DATA,DATA_UR,DATA_ZAK,DATA_ZGLOSZ,DOCTOR_ID,DOC_ID,DOC_NR,DOC
_TYPE_ID,DOC_YEAR,DUZE_TYP,DYSPLAZJA_RES,DYSP_UWAGI,EDIT_STATUS,FERMA_ID,GODZ_ZG
LOSZ,GRUZ_OPIS,HAS_ATTACH,HAS_LB_ORDERS,HAS_WIZ_SUB,HOTEL_ID,HOUR,IL_ZWIERZAT,IN
FORM_RES,INSEMI_OPIS,INV_ID,IS_DYSPLAZJA,IS_EPIKRYZA,IS_EXTERNAL,IS_FINISH,IS_LA
B_NEW,IS_WSCIEKL,LECZENIE_ID,L_SZPITALNE,MANY_BUD,MSC_POBYTU,NR_KS_LECZ,OBSER_ID
,OBSER_NR,OBSER_OPIS,ODDZIAL,POTW_ID,PRIV_NOTES,PROF_OPIS,RECEPTA_ID,RECEPT_OPIS
,REPS_PRINTED,SHIFT_CODE,SPECIAL_DESC,SPECIAL_STAT,SUB_ID,SZCZEP_ID,TEMP,TEMPER,
TIME_CHG,TO_KSIAZKA,TYP_WIZ,WAGA,WIZ_GOSP,WIZ_ID,WIZ_SRC,WYWIAD,ZALECENIA,ZALEC_
DPRIV FROM WIZYTY
Prepare statement...ERROR!
*** IBPP::SQLException ***
Context: Statement::Prepare( SELECT AMOUNT,ANI_DESC,ANI_ID,AUJESZKY,BADANIE_ID,B
ADANIE_OPIS,BUDYNEK_ID,CHEMIA_OPIS,CUST_ID,DATA,DATA_UR,DATA_ZAK,DATA_ZGLOSZ,DOC
TOR_ID,DOC_ID,DOC_NR,DOC_TYPE_ID,DOC_YEAR,DUZE_TYP,DYSPLAZJA_RES,DYSP_UWAGI,EDIT
_STATUS,FERMA_ID,GODZ_ZGLOSZ,GRUZ_OPIS,HAS_ATTACH,HAS_LB_ORDERS,HAS_WIZ_SUB,HOTE
L_ID,HOUR,IL_ZWIERZAT,INFORM_RES,INSEMI_OPIS,INV_ID,IS_DYSPLAZJA,IS_EPIKRYZA,IS_
EXTERNAL,IS_FINISH,IS_LAB_NEW,IS_WSCIEKL,LECZENIE_ID,L_SZPITALNE,MANY_BUD,MSC_PO
BYTU,NR_KS_LECZ,OBSER_ID,OBSER_NR,OBSER_OPIS,ODDZIAL,POTW_ID,PRIV_NOTES,PROF_OPI
S,RECEPTA_ID,RECEPT_OPIS,REPS_PRINTED,SHIFT_CODE,SPECIAL_DESC,SPECIAL_STAT,SUB_I
D,SZCZEP_ID,TEMP,TEMPER,TIME_CHG,TO_KSIAZKA,TYP_WIZ,WAGA,WIZ_GOSP,WIZ_ID,WIZ_SRC
,WYWIAD,ZALECENIA,ZALEC_DPRIV FROM WIZYTY  )
Message: isc_dsql_prepare failed

SQL Message : -104
Invalid token

Engine Code    : 335544569
Engine Message :
Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 297
HOUR

有什么让它发挥作用的想法吗?

HOUR从FB 2.5开始成为保留字,不能作为列名使用。重命名列并重试。如果您使用的服务器不允许您重命名列,请在旧版本中重命名。