dbTalk Databases Forums  

can you run a psql command line query?

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss can you run a psql command line query? in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tj
 
Posts: n/a

Default can you run a psql command line query? - 03-01-2004 , 08:15 PM






After reading the manual, it looks like you can run a query on a single
command line. But I cant get it to work...

Does this look right to anyone?

Quote:
psql -d hostname -c "update table set field='value'" -U username -W
password

maybe I dont have the syntax correct for parsing the string?

TIA,
tj



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.