Changes between Version 16 and Version 17 of oid/WorkLog/08-10-15


Ignore:
Timestamp:
Oct 15, 2008, 3:50:34 PM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • oid/WorkLog/08-10-15

    v16 v17  
    7474 * [工具] [http://www.lightbox.ca/pg2mysql.php pg2mysql converter (PostgreSQL to MySQL Converter)]
    7575 * [參考] [http://forums.mysql.com/read.php?83,128328,226468#msg-226468 遇到 triggers , sequences , domain 這幾個差異時就沒輒了]
     76 * 原始 account Table 表
    7677{{{
    77 jazz@oceandb:~$ wget http://www.lightbox.ca/pg2mysql-1.2.tar.bz2
    78 jazz@oceandb:~$ tar jxvf pg2mysql-1.2.tar.bz2
    79 jazz@oceandb:~$ cd pg2mysql-1.2/
    80 jazz@oceandb:~/pg2mysql-1.2$ sudo apt-get install php5-cli
    81 jazz@oceandb:~/pg2mysql-1.2$
     78--
     79-- PostgreSQL database dump
     80--
     81
     82SET client_encoding = 'UTF8';
     83SET standard_conforming_strings = off;
     84SET check_function_bodies = false;
     85SET client_min_messages = warning;
     86SET escape_string_warning = off;
     87
     88SET search_path = public, pg_catalog;
     89
     90SET default_tablespace = '';
     91
     92SET default_with_oids = true;
     93
     94--
     95-- Name: account; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
     96--
     97
     98CREATE TABLE account (
     99    serial smallint DEFAULT nextval(('account_seq'::text)::regclass) NOT NULL,
     100    name character varying(10) NOT NULL,
     101    tel character varying(20) NOT NULL,
     102    fax character varying(20),
     103    mail character varying(20),
     104    department character varying(20) NOT NULL,
     105    unit character varying(20) NOT NULL,
     106    title character varying(20),
     107    admin boolean NOT NULL,
     108    account character varying(20) NOT NULL,
     109    password character varying(20) NOT NULL
     110);
     111
     112
     113ALTER TABLE public.account OWNER TO postgres;
    82114}}}
    83    * 轉出來的結果有錯,因為有用到 sequence (序列)
     115   * 經 pg2mysql 轉出來的結果有錯,因為有用到 sequence (序列)
    84116{{{
    85117#!diff