Posted by Tim Bray on 19 September 2011 at 9:26 AM
没有想到MySQL中还有这么多的函数,今天在修改密码的时候偶然看到的,help命令用了好几次,先把几个个人认为比较有意思的函数记录下来。以后再慢慢添加。 查看版本号:select version(); 计算密码函数:select password('密码'); md5校验码计算:select md5(''); 计算出128位的md5校验码,以32位的十六进制形式给出 encode & decode:Encrypt str using pass_str as the password. To decrypt the result, use DECODE(). Decrypt...
Hash functions A comprehensive collection of hash functions, a hash visualiser and some test results [see Mckenzie et al. Selecting a Hashing Algorithm, SP&E 20(2):209-224, Feb 1990] will be available someday. If you just want to have a good hash function, and cannot wait, djb2 is one of the best string hash functions i know. it has excellent distribution and speed on many different sets of keys ...
Certification Objective 1.14: preparing to Install Linux 认证目的 1.14: 准备安装 Linux Installing Linux on most Intel-based computers is pretty straightforward. 安装在大多数的以英代尔為主的计算机上的 Linux 相当笔直。 In many cases, most installation proceeds without problems. 在许多情况, 没有问题的大多数的安装收入。 Generally, if you are installing Linux on one modern computer, it should be oka...
一:使用for循环测试局域网内(192.168.1.0/24)服务器的网络状态 #!/bin/bash for i in {1..254} do if ping -c 1 192.168.1.$i &>/dev/null then echo 192.168.1.$i is UP. else echo 192.168.1.$i is DOWN. fi done 二:删除本目录下的所有空的txt文件,并打印出删除文件的总数 #!/bin/bash n=0 for i in $(find . -type f -name "*.txt") do if [ ! -s $i ] then ...
Please see the program help or the manual for the latest update of this documentation. Most of the functionality of WinHex can be used in an automated way, e.g. to speed up recurring routine tasks or to perform certain tasks on unattended remote computers. The ability to execute scripts other than the supplied sample scripts is limited to owners of a professional or specialist license. scripts ca...
干嘛学习 scripts scripts 的执行与第一支 scripts : 卷标与运算符号 : declare 对谈式 scripts : read scripts 逻辑判断式与表达式 : 条件式判断 : if...then...fi , case.....esac 循环 :for....do....done, while...do...done, until...do...done, script 如何 debug : 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/92500/showart_1821290.html
• 什么是 shell scripts ? scripts 有何功用? • 简单的说, scripts 就是一个内部含有多个或复杂的 command 的 纯文本文件; • scripts 可以进行 program 的功能,但速度上较 C 慢了点! • 要撰写可以经由键盘输入的 scripts 时,常使用到的指令? read variable • 在 shell script 当中,在控制式中, && 与 || 代表什么意思? 分别代表『和(同时成立)』及『或(仅其一成立就成立)』的意思! R...