仅列出标题 列出摘要

随笔分类 -  数据库

数据库相关
mySQL中删除unique key的语法
摘要:CREATE TABLE `good_booked` ( `auto_id` int(10) NOT NULL auto_increment, `good_id` int(11) default NULL, `chemist_id` int(11) default NULL, PRIMARY KEY... 阅读全文
posted @ 2015-12-09 21:52 baoyiluo 阅读(2353) 评论(0) 推荐(0)
查看sqlite3中指定表的所有字段
摘要:PRAGMA table_info([tablename]) 阅读全文
posted @ 2014-02-10 10:20 baoyiluo 阅读(2877) 评论(0) 推荐(0)
python cx_Oracle模块的安装和使用
摘要:最近需要写一个数据迁移脚本,将单一Oracle中的数据迁移到MySQL Sharding集群,在linux下安装cx_Oracle感觉还是有一点麻烦的,整理一下,做个总结。对于Oracle客户端,不只需要安装相应的python模块(这里我用了Oracle官方的python模块——cx_Oracle),还需要安 装Oracle Client,一般选择Instant Client就足够了,还需要配置tnsnames.ora(当然也可以简单的通过host:port/schema访问)。安装:1. 首先确定版本。因为我们的Oracle数据是在是有点老,所以我选择了一个比较老的版本——Oracle In 阅读全文
posted @ 2013-07-05 18:15 baoyiluo 阅读(601) 评论(0) 推荐(0)
error while loading shared libraries: libclntsh.so.11.1
摘要:解决这个问题有两种方法1、在当前用户下,添加链接库所在路径 LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH2、root用户下,在文件/etc/ld.so.conf中添加链接库所在路径/oracle/product/11.2.0/db_1/lib,保存后退出,并执行ldconfig即可 阅读全文
posted @ 2013-07-05 18:13 baoyiluo 阅读(886) 评论(0) 推荐(0)