Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: to get the list of schemas in postgresql db

by zwon (Monsignor)
on Nov 22, 2011 at 06:29 UTC ( #939375=note: print w/ replies, xml ) Need Help??


in reply to to get the list of schemas in postgresql db

The same way you will do it without perl, select * from pg_namespace I guess.


Comment on Re: to get the list of schemas in postgresql db
Download Code
Re^2: to get the list of schemas in postgresql db
by ansh batra (Friar) on Nov 22, 2011 at 06:36 UTC
    ur query is correct zwon but for that i need to connect to a database first
    cant we supply the database name in the query itself?? thanks

      Easy answer :) : No


      Enjoy, Have FUN! H.Merijn
        thanks tuk
        atleast ill not be wasting time now
        EDIT : we cannot interact with a db without connecting to it
        sorry i forgot that

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-08-21 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls