mysql 命令
文章平均质量分 84
我是大黄鸭
php技术中牛
展开
-
mysql 常用命令之函数
函数如下: left,right 字符串截取from_unixtime 格式化unix时间戳concat 字符串连接函数max 取某列最大值min 取某列最小值 sum 计算某列的和count 统计条数md5 返回md5加密码的串format 格式化数字为xx,xxx,xxx.xxxx格式 比如1,1000.123length 计算某个字符串长度distinct 去重复re...原创 2012-03-09 16:02:39 · 118 阅读 · 0 评论 -
MySQL查看用户权限
查看当前登录用户: select user(); mysql> select user();+----------------+| user() |+----------------+| root@localhost |+----------------+ 查看用户权限: show grants for root@localhost; mysql&g...原创 2013-09-23 11:12:20 · 205 阅读 · 0 评论