向高手们求教!!! 在mysql中,创建表时将一个栏位错建成teano(正确为teamno),请问有啥既快又好的方法将其更正!!!谢谢啦~~~~~~~~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 mysql> create table t_Forcast457(teano int);Query OK, 0 rows affected (0.08 sec)mysql> insert into t_Forcast457 values (10),(20);Query OK, 2 rows affected (0.06 sec)Records: 2 Duplicates: 0 Warnings: 0mysql> desc t_Forcast457;+-------+---------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Extra |+-------+---------+------+-----+---------+-------+| teano | int(11) | YES | | NULL | |+-------+---------+------+-----+---------+-------+1 row in set (0.00 sec)mysql> select * from t_Forcast457;+-------+| teano |+-------+| 10 || 20 |+-------+2 rows in set (0.00 sec)-- 既快又好的方法将其更正mysql> alter table t_Forcast457 change teano teamno int;Query OK, 0 rows affected (0.06 sec)Records: 0 Duplicates: 0 Warnings: 0mysql> desc t_Forcast457;+--------+---------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Extra |+--------+---------+------+-----+---------+-------+| teamno | int(11) | YES | | NULL | |+--------+---------+------+-----+---------+-------+1 row in set (0.00 sec)mysql> select * from t_Forcast457;+--------+| teamno |+--------+| 10 || 20 |+--------+2 rows in set (0.00 sec)mysql> 【及时结贴】数据库恢复后的奇怪问题 SQL Server 2005的问题 求一个SQL语句或存储过程 强人帮忙!!!我都要疯了..... SQL SERVER 都那些方面的考试认证 sql group by语句 怎样在结果集中查询需要的数据 在存储过程中如何对记录集进行循环操作????? 使用存储过程往varchar(2)的字段里存储‘09’ 为什么得到的结果是‘9’,但是使用查询分析器结果却是对的? 求助,关于实时监控数据库中的表 初学者。Sqlserver null的问题 正在做一个分销系统,请教关于配送和调拨的关系?
Query OK, 0 rows affected (0.08 sec)mysql> insert into t_Forcast457 values (10),(20);
Query OK, 2 rows affected (0.06 sec)
Records: 2 Duplicates: 0 Warnings: 0mysql> desc t_Forcast457;
+-------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| teano | int(11) | YES | | NULL | |
+-------+---------+------+-----+---------+-------+
1 row in set (0.00 sec)mysql> select * from t_Forcast457;
+-------+
| teano |
+-------+
| 10 |
| 20 |
+-------+
2 rows in set (0.00 sec)-- 既快又好的方法将其更正
mysql> alter table t_Forcast457 change teano teamno int;
Query OK, 0 rows affected (0.06 sec)
Records: 0 Duplicates: 0 Warnings: 0mysql> desc t_Forcast457;
+--------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+---------+------+-----+---------+-------+
| teamno | int(11) | YES | | NULL | |
+--------+---------+------+-----+---------+-------+
1 row in set (0.00 sec)mysql> select * from t_Forcast457;
+--------+
| teamno |
+--------+
| 10 |
| 20 |
+--------+
2 rows in set (0.00 sec)mysql>