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

推荐订阅源

V
Visual Studio Blog
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
腾讯CDC
T
Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
Cisco Talos Blog
Cisco Talos Blog
C
Cisco Blogs
A
Arctic Wolf
人人都是产品经理
人人都是产品经理
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
爱范儿
爱范儿
GbyAI
GbyAI
The Register - Security
The Register - Security
AWS News Blog
AWS News Blog
MyScale Blog
MyScale Blog
T
Tenable Blog
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
Cyberwarzone
Cyberwarzone
量子位
Microsoft Azure Blog
Microsoft Azure Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
C
Cybersecurity and Infrastructure Security Agency CISA
The Cloudflare Blog
B
Blog RSS Feed
小众软件
小众软件
D
Docker
Know Your Adversary
Know Your Adversary
Y
Y Combinator Blog
P
Privacy & Cybersecurity Law Blog
Engineering at Meta
Engineering at Meta
Latest news
Latest news
AI
AI
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
S
Secure Thoughts
N
News | PayPal Newsroom
The Hacker News
The Hacker News
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
博客园 - 司徒正美
L
Lohrmann on Cybersecurity
Cloudbric
Cloudbric

博客园 - Voodoo's天空

时间、事件、实践 投票作弊程序制作思路(续)——突破IP限制投票 投票作弊程序制作思路 C#中使用正则表达式清除javascript脚本的方法 迁移SharePoint Portal Server 2003 (sps2003) 需要注意和出现的问题 2004年的最后一个POST 开发自定义控件的笔记 (2) 开发自定义控件的笔记(1) 利用ADO中记录集筛选 Smart Client 高级开发 图解Windows历史 非常好的思想 (Design your web pages freely at runtime - by Jasper) 一个PHP版本的数据库操作类,针对MYSQL的 在不同语言中关于CheckBox的处理办法(ASP、JSP、PHP) 一个不完整的OLEDB操作类(自己乱写的,呵呵) Winform的登录窗体设计思路 在应用程序中打开浏览器 周末的中日之战…… 关于值类型和引用类型比较的问题
一年没有更新自己的BLOG了,主要是记录一些从sqlserver导数据到oracle的解决方法
Voodoo's天空 · 2005-12-16 · via 博客园 - Voodoo's天空

时间过得真快,转眼一年又过去了,现在没有时间感慨了

来看一下,我在从SQLSERVER2000 导数据到ORACLE9i中遇到的问题以及解决的方法

1、ORACLE 字符集不匹配
 字符类型不正确,注意导入的字符类型即可
2、ORA-01461: 仅可以为插入LONG 列的LONG 值赋值
 是因为导数据的长度varchar2类型只能识别2000字符长度.需要调整一下数据库设置即可
3、ora-24801: 在OCI lob 函数中非法的参数值
 从ntext类型导入到CLOB类型的时候可能会出现的问题,造成的原因是由于ntext的字段时空的
4、ORA 标识中缺少双引号
 这是因为从SQLSERVER导到ORACLE中的表名长度的问题引起的,解决的方法是创建一个短一点名字的表,创建一个同义词命名为原来的表名即可

另外

还有一些常用的语法

oracle 中的字符串连接符是 ||, sql server,sybase中是 +.
oracle 中取uuid 的方法是select sys_guid() from dual ; sql server 中是 select newId();
oracle 中取头n行数据是 select ... from ... where ... and ROWNUM < N; sql server 是用 select top n ... from ... where ...
oracle 中取当前时间是用select sysdate from dual;sql server是用select getdate();
oracle 中自动增一的方法是create sequence seq_object_name,然后每次使用时,调用 seq_object_name.nextval; sql server 中是直接创建带identity类型的字段,不用再去管他.
oracle 中创建一个临时表 select a.* from (select * from table) a, sql server是 select a.* from (select * from table) as a