在mysql字段RLT中插入阿拉伯字母

时间:2013-10-25 01:12:44

标签: mysql database phpmyadmin arabic

我在mysql字段中遇到的问题是“类名”我是阿拉伯语的人,所以我们的班级名称 像那样: 11D2 假设D是阿拉伯字母,但我是mysql字段,它看起来像“112D”因为我的阿拉伯语从右到左开始。

所以我想问一下如何解决它并将其存储为 11D2

CREATE TABLE `class` (
 `CLASS_ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `CLASS_NAME` varchar(45) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
 `Grade_id` int(10) unsigned NOT NULL,
 `Stage_id` int(10) unsigned NOT NULL,
 `school_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`CLASS_ID`),
 KEY `school_ids3` (`school_id`),
 KEY `grade_ids` (`Grade_id`) USING BTREE,
  KEY `stage_ids2` (`Stage_id`) USING BTREE,
  CONSTRAINT `grade_id4` FOREIGN KEY (`Grade_id`) REFERENCES `grade` (`Grade_id`) ON     DELETE NO ACTION ON UPDATE NO ACTION,
 CONSTRAINT `school_id8` FOREIGN KEY (`school_id`) REFERENCES `schools` (`school_id`)    ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `stage_id3` FOREIGN KEY (`Stage_id`) REFERENCES `stage` (`STAGE_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
 )     ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8

0 个答案:

没有答案