当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 在mdi的主窗口放一pagecontrol控件后,子窗口都被穩在里面看不出來,如何解決這個問題? ......
 ·怎样得到select选择的多个值    »显示摘要«
    摘要: 如题 ......


问一个MYSQL 中的命令

请问在mysql中,修改一个表中的字段名,并不能影响这的字段中的数据,这的功能用什么语句实现?

NO.1   作者: pi1ot

maybe   ALTER.

NO.2   作者: webmin

你说的sp_rename是sql   server中提供的系统存储过程,mysql中没有这个命令.mysql和sql   server不是同一产品,前者是瑞典一公司的产品后者是微软的产品.

NO.3   作者: ppop123

You   can   rename   a   column   using   a   CHANGE   old_col_name   create_definition   clause.  
  To   do   so,   specify   the   old   and   new   column   names   and   the   type   that   the   column   currently  
  has.   For   example,   to   rename   an   INTEGER   column   from   a   to   b,   you   can   do   this:  
  mysql>   ALTER   TABLE   t1   CHANGE   a   b   INTEGER;  
  If   you   want   to   change   a   columns   type   but   not   the   name,   CHANGE   syntax   still   requires  
  two   column   names   even   if   they   are   the   same.   For   example:  
  430   MySQL   Technical   Reference   for   Version   4.0.1-alpha  
  mysql>   ALTER   TABLE   t1   CHANGE   b   b   BIGINT   NOT   NULL;  
  However,   as   of   MySQL   Version   3.22.16a,   you   can   also   use   MODIFY   to   change   a   columns  
  type   without   renaming   it:  
  mysql>   ALTER   TABLE   t1   MODIFY   b   BIGINT   NOT   NULL;


 ·控件名能否拆开    »显示摘要«
    摘要: 比如说把“edit1”的“edit”和“1”拆开,该怎样办? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE