会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
清风吹云
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
mysql
mysql更新一个表里的字段等于另一个表某字段的值
摘要:update zcat as z left join zcat_bak_1212 as zb on z.zcatId = zb.zcatId set z.zcatName = zb.zcatName where z.zcatName is null;
阅读全文
posted @
2016-06-08 16:30
清风吹云
阅读(1023)
评论(0)
推荐(0)
mysql查询所有记录,并去掉重复的记录
摘要:distinct(str)函数是用来去掉重复记录的,但是它只是针对某一个字段可以去重复。例如:select distinct(name)from tablename; 但是如果想把其他字段值的记录也查询出来,我一开始想的是使用select distinct(name) ,ta.* from tabl...
阅读全文
posted @
2014-10-13 15:55
清风吹云
阅读(290)
评论(0)
推荐(0)
mysql触发器
只有注册用户登录后才能阅读该文。
posted @
2014-10-07 11:11
清风吹云
阅读(1)
评论(0)
推荐(0)
公告