Unix Technical Forum

Re: MS SQL - PostgreSQL

This is a discussion on Re: MS SQL - PostgreSQL within the Pgsql General forums, part of the PostgreSQL category; --> It is better to send plain text messages instead of html. It is a pain to respond to emails ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 05:56 AM
Dann Corbit
 
Posts: n/a
Default Re: MS SQL - PostgreSQL

It is better to send plain text messages instead of html.

It is a pain to respond to emails in HTML format.

________________________________________
From: pgsql-general-owner@postgresql.org [mailtogsql-general-owner@postgresql.org] On Behalf Of Irfan Syukur
Sent: Tuesday, September 13, 2005 6:31 PM
To: POSTGRESQL (E-mail)
Subject: [GENERAL] MS SQL - PostgreSQL

Dear Mailing List member,
I have been using MS SQL for a few years and now I am trying to migrate to PostgreSQL.
Are there any statements that similir for :
** - if [not] exists (select 1 from sysdatabases where name=[db_name])
******** drop database [db_name]
DC >>
Look at pg_database
<< DC
** - if [not] exists (select 1 from sysobjects where type = 'U' and* name = [table_name])
******** drop table [table_name]
DC >>
Look at pg_tables
<< DC
** - if exists (select 1 from sysindexes where name = [index_name] and indid > 0)
******** drop index [table_name].[index_name]
DC >>
Look at pg_indexes
<< DC
** - If in MS SQL there is 'store procedured', what about in PostgreSQL ?
DC >>
Sure.
<< DC

** - is there any tools, like bcp (bulk copy) in postgresql ?
>>

Look at the copy command.

There are some real nice PostgreSQL manuals online. Try this:
http://www.postgresql.org/docs/8.0/static/index.html

it has a search function too.
<<

________________________________________
-------------------------------------------------------------------------------------------------------------------------
"Transmisi ini mungkin berisi informasi yang bersifat pribadi, rahasia dan tertutup untuk
dipublikasikan berdasarkan Hukum dan Peraturan Perundang-undangan yang berlaku di
wilayah Republik Indonesia. Jika Anda bukanlah penerima yang dituju, bersama ini Anda
diperingatkan bahwa semua publikasi, penggandaan, pendistribusian, atau penggunaan
informasi yang ada disini (berikut semua informasi yang terkait) adalah SANGAT
TERLARANG. Jika Anda menerima transmisi ini tanpa disengaja, harap segera hubungi
pengirim dan hapus material ini seluruhnya, baik dalam bentuk elektronik maupun
dokumen cetak. Terima kasih."
-------------------------------------------------------------------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com