码迷,mamicode.com
首页 >  
搜索关键字:postgresql    ( 3125个结果
How to drop a PostgreSQL database if there are active connections to it?
1、PostgreSQL 9.1 and below:SELECT pg_terminate_backend(pg_stat_activity.procpid)FROM pg_stat_activityWHERE pg_stat_activity.datname = 'TARGET_DB' AND....
分类:数据库   时间:2014-11-01 20:27:22    阅读次数:298
oracle到mysql的导数据方式(适用于任意数据源之间的互导)
为了生产库释放部分资源,需要将API模块迁移到mysql中,及需要导数据。 尝试了oracle to mysql工具,迁移时报错不说,这么大的数据量,用这种简陋的工具不大可靠。 意外发现平时用的数据库视图工具Navicat Premium中有数据迁移工具,意外的好用。这个工具本身支持mysql,oracle,sqlLite,PostgreSql数据库,因此而也提供了在不同数据库之间迁移数据的功...
分类:数据库   时间:2014-10-31 11:58:56    阅读次数:158
ubuntu 安装ODOO时的python的依赖
sudo apt-get install graphviz ghostscript postgresql-client \ python-dateutil python-feedparser python-gdata \ python-ldap python-libxslt1 python-lxml...
分类:编程语言   时间:2014-10-31 09:55:57    阅读次数:337
Django与PostgreSQL数据库的那些事
删除psql数据库:(以数据库Django名为例:)dropdbDjango;新建数据库并属于django:createdbDjango-Odjango当我们在Django中用了pythonmanage.pysyncdb后,会在PostgreSQL中新建了对应的应用的表,但是有时候会发现在admin管理平台时添加数据时出现CSRF错误。这时候,我们要采..
分类:数据库   时间:2014-10-31 06:29:20    阅读次数:206
postgresql 函数demo
create or replace function refresh_product_usage() returns void as $$declare rec record; sub_rec record; init_pro_id integer; parent_product_id integ....
分类:数据库   时间:2014-10-30 09:20:25    阅读次数:275
python读取postgresql数据库并发送相关提醒邮件
代码如下:#!/usr/bin/envpythonimportsmtplibfromemail.mime.textimportMIMETextimportpsycopg2importdatetimemail_host="smtp.XXX.com" mail_user="XXX" mail_pass="XXX" mail_postfix="XXX.com"defsend_mail(to_list,sub,content): me="RemindEmail"+"<"+mail_user+"@"+..
分类:数据库   时间:2014-10-30 02:02:55    阅读次数:251
gearman with postgresql as persistent Queuing
gearman is a good thinggearman client --------------> gearman server <------------------------gearman workerclients are requesting to handler somethin...
分类:数据库   时间:2014-10-29 00:08:10    阅读次数:250
PostgreSQL with PostGIS for mapping coordinates
For location based service, I try to use postgresql with postgis.You can download postgis from here.http://postgis.net/sourceIt is recommended that yo...
分类:移动开发   时间:2014-10-28 21:34:00    阅读次数:297
sql实现行列转换
postgresql 现有一个表如(表一)想要转换为(表二) sql:select stuName as 姓名,chinese as 语文,math as 数学,english as 英文 from(...
分类:数据库   时间:2014-10-28 12:15:37    阅读次数:171
postgreSQL 学习资料
PostgreSQL9.3性能优化培训系列课程http://edu.51cto.com/course/course_id-2278.html
分类:数据库   时间:2014-10-27 19:42:33    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!