Changes between Version 12 and Version 13 of oid/WorkLog/08-10-15


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

--

Legend:

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

    v12 v13  
    8181jazz@oceandb:~/pg2mysql-1.2$
    8282}}}
     83   * 轉出來的結果有錯,因為有用到 sequence (序列)
     84{{{
     85#!diff
     86--- account.sql.org     2008-10-15 23:23:54.000000000 +0800
     87+++ account.sql 2008-10-15 23:24:12.000000000 +0800
     88@@ -1,5 +1,5 @@
     89collation database utf8_unicode_ci
     90 CREATE TABLE account (
     91-    int(11) auto_increment smallint auto_increment NOT NULL,
     92+    serial int(11) auto_increment NOT NULL,
     93     name varchar(10) NOT NULL,
     94     tel varchar(20) NOT NULL,
     95     fax varchar(20),
     96@@ -10,5 +10,5 @@
     97     admin bool NOT NULL,
     98     account varchar(20) NOT NULL,
     99     password varchar(20) NOT NULL
     100-, PRIMARY KEY(`int(11)`)
     101+, PRIMARY KEY(`serial`)
     102- ) TYPE=MyISAM;
     103+ ) TYPE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
     104}}}
    83105 * [工具二] [http://sqlfairy.sourceforge.net/ SQL::Translator (aka SQLFairy)]
    84106 * [參考] [http://forums.mysql.com/read.php?83,34517,70646#msg-70646 用 Perl 寫的 SQL::Translator (aka SQLFairy)]