RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Saving an output of PostgreSQL query to a text file

In PostgreSQL database it is possible to save / export and results of a database query to a simple text file. By default  all query result are displayed on the screen. This default behavior can be overwritten by \o command:

postresql=> \o /path/to/your/text/file.txt
postresql=> postgresql query  ( here place your query )
postresql=> \o ( set back the default output behavior  )

Share this linux post:

Submit Saving an output of PostgreSQL query to a text file in Delicious Submit Saving an output of PostgreSQL query to a text file in Digg Submit Saving an output of PostgreSQL query to a text file in FaceBook Submit Saving an output of PostgreSQL query to a text file in Google Bookmarks Submit Saving an output of PostgreSQL query to a text file in Stumbleupon Submit Saving an output of PostgreSQL query to a text file in Technorati Submit Saving an output of PostgreSQL query to a text file in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download