惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Vulnerabilities – Threatpost
雷峰网
雷峰网
GbyAI
GbyAI
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
V
V2EX
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
C
CXSECURITY Database RSS Feed - CXSecurity.com
美团技术团队
Engineering at Meta
Engineering at Meta
T
Tenable Blog
P
Privacy & Cybersecurity Law Blog
Project Zero
Project Zero
Cloudbric
Cloudbric
Help Net Security
Help Net Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LINUX DO - 热门话题
J
Java Code Geeks
WordPress大学
WordPress大学
S
Securelist
F
Full Disclosure
N
News and Events Feed by Topic
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
U
Unit 42
Google Online Security Blog
Google Online Security Blog
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Schneier on Security
Schneier on Security
Google DeepMind News
Google DeepMind News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
月光博客
月光博客
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
小众软件
小众软件
V2EX - 技术
V2EX - 技术
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
The Last Watchdog
The Last Watchdog
D
DataBreaches.Net

博客园 - liang--liang

项目管理--风险管理 设置全局theme及读取theme方法 项目经理面试题 项目团队发展经历的几个阶段及其特点 软件开发模式简介 通过DataTable 返回Json格式,用于绑定Easyui tree 把DataTable 转换成Json格式,适用于EasyUI 绑定DataGrid c# 把数据表DataTable 导出到Excel 解决document.body.clientWidth 或 document.body.clientHeight 为0的问题 jquery Uploadify 在MVC3中的应用上传 IO Error 解决 MVC下载文件方式 基于jquery的上传插件Uploadify 3.1.1在MVC3中的使用 ORACLE中一个字符占多少字节? 软件开发:需求分析的20条法则(转) PowerDesigner 物理数据模型(PDM) 说明 常见Oracle HINT的用法 Oracle 分区表 总结 《XML实用大全》二 《XML实用大全》一
PowerDesigner PDM 生成SQL脚本 去除双引号方法
liang--liang · 2012-08-03 · via 博客园 - liang--liang

如果直接导出脚本的话,所有的表和字段都会被加上双引号,不能直接导入数据库。如:

  1. create table"cfg_user_card_account"  (  
  2.   "user_card_account_id" number                          not null,  
  3.   "dat_user_id"       NUMBER,  
  4.   "user_balance"       number,  
  5.   "user_money"        number,  
  6.   "user_freeze_money" number,  
  7.   "user_cost_money"   number,  
  8.   "user_account_status" number,  
  9.   "remark"            varchar2(500),  
  10.   constraint PK_CFG_USER_CARD_ACCOUNT primary key("user_card_account_id")  
  11. );  

如果这样直接导入数据库,引号也会被加上,查询的时候也必须加上引号。可以通过设置导出时,不加引号,方法如下:

 

再导出的效果如下:

  1. create table cfg_user_card_account  (  
  2.   user_card_account_id number                          not null,  
  3.   dat_user_id          NUMBER,  
  4.   user_balance         number,  
  5.   user_money           number,  
  6.   user_freeze_money    number,  
  7.   user_cost_money      number,  
  8.   user_account_status  number,  
  9.   remark              varchar2(500),  
  10.   constraint PK_CFG_USER_CARD_ACCOUNT primary key (user_card_account_id)  
  11. );