pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zot O'Connor <zot@ZotConsulting.com>
To: postgres sql <pgsql-sql@hub.org>
Subject: Coverting mysql keys
Date: Sat, 24 Jul 1999 12:02:17 -0700
Message-ID: <379A0DB9.AA330EA4@ZotConsulting.com> (raw)

Excuse my complete ignorance of SQL.

I am converting a mysql DB to postgres.

Mysql defines keys in the Create table structure like:
create table ohead (
	custid  varchar(8),
        key     orderid (orderid),
.....

To covert this to postgres I guess I need an index, which is done
externally to the create table?

:
create table ohead (
	custid  varchar(8),
        orderid (orderid),
...

CREATE INDEX orderid(??use same name or _idx??) on ohead (orderid);

Again, I am clueless to SQL, how do I utilize the increase in speed? 
Does it happen when I SELECT/JOIN things together? or do I reference the
index in my queries.

Thanks!

-- 
Zot O'Connor

www.ZotConsulting.com
www.WhiteKnightHackers.com



Message-ID: <379A0DB9.AA330EA4@ZotConsulting.com>
Permalink:  ../379A0DB9.AA330EA4@ZotConsulting.com/
Also on:    postgresql.org/message-id/379A0DB9.AA330EA4@ZotConsulting.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: zot@ZotConsulting.com, pgsql-sql@hub.org
  Subject: Re: Coverting mysql keys
  In-Reply-To: <379A0DB9.AA330EA4@ZotConsulting.com>
  References: <379A0DB9.AA330EA4@ZotConsulting.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox