创建表如下:
CREATE TABLE CommonCode_table
(
codeType varchar(20) not null, /*代码类型*/
codeName varchar(20) not null, /*代码名称*/
codeValue varchar(100) not null, /*代码值*/
primary key(codeType,codeName)
);加入信息如下:
load data local infile "d:\\d:commoncode.txt" into table commoncode_table;commoncode.txt内容如下orderSendState N 未发送
orderSendState Y 已发送
orderStatus N 未确认
orderStatus Y 已确认
UserType admin 系统管理员
UserType user 注册用户
YesOrNo N 否
YesOrNo Y 是执行之后显示的内容为
mysql> select * from commoncode_table;
+----------------+----------+-------------+
| codeType | codeName | codeValue |
+----------------+----------+-------------+
| | admin | 系统管理员
| | N | 未发送
| | user | 注册用户
| | Y | 已发送
| SendState | N | 未发送
| SendState | Y | 已发送
| Status | N | 未确认
| Status | Y | 已确认
| serType | admin | 系统管理员
| rType | user | 注册用户
| | N | 否
| YesOrNo | Y | 是 |
+----------------+----------+-------------+
12 rows in set (0.00 sec)
就是前边codeType这一排的信息没有准确的显示出来而是特别的乱这是为什么啊!!!高手帮帮忙吧
CREATE TABLE CommonCode_table
(
codeType varchar(20) not null, /*代码类型*/
codeName varchar(20) not null, /*代码名称*/
codeValue varchar(100) not null, /*代码值*/
primary key(codeType,codeName)
);加入信息如下:
load data local infile "d:\\d:commoncode.txt" into table commoncode_table;commoncode.txt内容如下orderSendState N 未发送
orderSendState Y 已发送
orderStatus N 未确认
orderStatus Y 已确认
UserType admin 系统管理员
UserType user 注册用户
YesOrNo N 否
YesOrNo Y 是执行之后显示的内容为
mysql> select * from commoncode_table;
+----------------+----------+-------------+
| codeType | codeName | codeValue |
+----------------+----------+-------------+
| | admin | 系统管理员
| | N | 未发送
| | user | 注册用户
| | Y | 已发送
| SendState | N | 未发送
| SendState | Y | 已发送
| Status | N | 未确认
| Status | Y | 已确认
| serType | admin | 系统管理员
| rType | user | 注册用户
| | N | 否
| YesOrNo | Y | 是 |
+----------------+----------+-------------+
12 rows in set (0.00 sec)
就是前边codeType这一排的信息没有准确的显示出来而是特别的乱这是为什么啊!!!高手帮帮忙吧
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货