![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
东冬冬
敲敲,是键盘的笙箫;
沉默,是代码的BUG;
展开
-
sql 增加字段 修改字段
增加 alter table 表名 ADD 字段 tinyint(1) DEFAULT ‘1’ COMMENT ‘字段注释’; 修改 alter table 表名 MODIFY COLUMN 字段 tinyint(1) DEFAULT ‘1’ COMMENT ‘字段注释’;转载 2020-06-30 10:08:00 · 741 阅读 · 0 评论 -
sql 将数据表中的字段值 修改为 一个字段的值
update 表名 set 字段 =( select b.entry from (select (a.字段) from 表名 a where a.id = 113) b ) where id >=103 and id<=500;转载 2020-05-29 18:21:49 · 2695 阅读 · 0 评论