![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
iteye_12449
这个作者很懒,什么都没留下…
展开
-
绝对有用! mysql里批量修改某个字段内的部分数据
这里使用了MYSQL的replace 以及 REGEX功能简单,但扩展性能大(相信各位应该能明白) update table set field=replace(field,'oldString','newString') where field REGEX 'preg)result' MySQL replace函数我们经常用到,下面就为您详细介绍MySQL replace...原创 2013-06-18 09:33:18 · 572 阅读 · 0 评论 -
MYSQL 用户权限
查看当前登录用户: select user(); [代码] 查看用户权限1show grants for 你的用户;2show grants for root@'localhost';3show grants for webgametest@10.3.18.158;4show creat...原创 2013-09-23 21:26:13 · 140 阅读 · 0 评论 -
多表操作
1.根据两个表达关系,搜索两个表。select * from artist,painting where artist.a_id = painting.a_id;2.另一种方法,用inner join代替逗号,where变成on。select * from artist inner join painting on artist.a_id = painting.a_id;3.如果两个表达字段a_i...原创 2012-10-30 22:41:20 · 82 阅读 · 0 评论