解决方案 »

  1.   

    表中字段加多語言。
    例如:
    sc_title, en_title, tc_title
      

  2.   

    语言改变不改动数据库的做法
    table: res (id, ...)
    table: res_lang (id, res_id, 语言, 内容...)
      

  3.   

    不用加字段,也不用加标,这样设计表
    我之前是这样做的:
    CREATE TABLE `article` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `albumID` int(11) DEFAULT NULL,
      `category` mediumint(8) unsigned NOT NULL DEFAULT '0',
      `title` varchar(120) NOT NULL,
      `uid` int(10) unsigned NOT NULL DEFAULT '0', 
      `description` mediumtext NOT NULL,
      `content` text NOT NULL, 
      `puttime` int(10) unsigned NOT NULL DEFAULT '0', 
      `listorder` int(10) unsigned NOT NULL DEFAULT '999', 
      `lang` varchar(20) NOT NULL DEFAULT 'zh_cn',
      PRIMARY KEY (`id`),
      KEY `category` (`category`),
      KEY `lang` (`lang`) 
    ) ENGINE=MyISAM AUTO_INCREMENT=5961 DEFAULT CHARSET=utf8
    其中lang字段用来标识不同语言,所有语种的都保存到这个表