如果直接导出脚本的话,所有的表和字段都会被加上双引号,不能直接导入数据库。如:
- create table"cfg_user_card_account" (
- "user_card_account_id" number not null,
- "dat_user_id" NUMBER,
- "user_balance" number,
- "user_money" number,
- "user_freeze_money" number,
- "user_cost_money" number,
- "user_account_status" number,
- "remark" varchar2(500),
- constraint PK_CFG_USER_CARD_ACCOUNT primary key("user_card_account_id")
- );
如果这样直接导入数据库,引号也会被加上,查询的时候也必须加上引号。可以通过设置导出时,不加引号,方法如下:
再导出的效果如下:
- create table cfg_user_card_account (
- user_card_account_id number not null,
- dat_user_id NUMBER,
- user_balance number,
- user_money number,
- user_freeze_money number,
- user_cost_money number,
- user_account_status number,
- remark varchar2(500),
- constraint PK_CFG_USER_CARD_ACCOUNT primary key (user_card_account_id)
- );