1. select * from emp; 2. select empno, ename, job from emp; 3. select empno 编号, ename 姓名, job 工作 from emp; 4. select job from emp; 5. select distinct ...
分类:
数据库 时间:
2019-02-20 20:09:50
阅读次数:
239
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo ...
分类:
其他好文 时间:
2019-02-18 18:52:07
阅读次数:
132
1、awk内置字符串函数gsub(r,s) 在整个$0中,用s代替rgsub(r,s,t) 在整个t中,用s代替r #替换字符串index(s,t) 返回s中字符串t的第一位置 #未用过length(s) 返回s长度 #c语言strlenmatch(s,r) 测试s是否包含匹配r的字符串 #c语言s ...
分类:
其他好文 时间:
2019-02-15 15:16:12
阅读次数:
123
sitemap xml生成方法 参考链接 [谷歌帮助文档] [sitemap xml格式] [谷歌seo优化] [谷歌帮助文档]:https://support.google.com/webmasters/answer/183668?hl=zh Hans [sitemap xml格式]:https: ...
分类:
其他好文 时间:
2019-02-14 12:02:33
阅读次数:
685
/** * * 五种方法获取文件扩展名 **/ echo strrchr($file_name, ‘ . ’); echo substr($file_name, strrpos($file_name, ‘ . ’)); echo array_pop(explode(‘ . ’, $file_name... ...
分类:
Web程序 时间:
2019-02-13 09:13:49
阅读次数:
178
主要介绍strings包中的 strings.go/search.go/replace.go string.go中主要介绍Index函数,该函数寻找s中第一次出现substr的位置,返回position或-1: 基本代码如下: 可以看到在substr较短的情况下使用了暴力匹配,否则使用rabin-k ...
分类:
其他好文 时间:
2019-02-12 21:45:00
阅读次数:
155
2、(4-7)choosethebestanswer:YouneedtodisplaythefirstnamesofallcustomersfromtheCUSTOMERStablethatcontainthecharacter‘e‘andhavethecharacter‘a‘inthesecondlastposition.Whichquerywouldgiveth
分类:
其他好文 时间:
2019-02-12 17:23:04
阅读次数:
147
2019.2.11 南京邮电的ctf平台: 地址http://ctf.nuptzj.cn/challenges# 他们好像搭新的平台了。。。我注册弄了好半天。。。 1. 签到题,打开网址: 查看一下页面源代码: 2. 这道题很熟悉,就是找 md5后开头为0e的 然后传参就行了: 比如 ?a=s878 ...
分类:
其他好文 时间:
2019-02-11 19:57:33
阅读次数:
302
什么是Reids 就是一个数据库,将数据保存在内存中 优点 支持数据持久化 支持丰富的数据类型 (字符串,哈希,列表,集合) 和Me的区别:Me是简单版的Redis,Me不支持持久化。Me仅仅支持字符串类型 redis -h server_addr -p port 查看所有键 keys * 添加修改 ...
分类:
其他好文 时间:
2019-02-10 15:01:55
阅读次数:
202
今天我们要介绍的设计模式叫做策略模式。策略模式其实就是把不同的策略(方法)封装在不同的类中。在策略模式(Strategy Pattern)中,一个类的行为或其算法可以在运行时更改。这种类型的设计模式属于行为型模式(摘自菜鸟教程)。下面我们用代码来实现策略模式。 1、首先定义一个策略的接口: 2.定义 ...
分类:
其他好文 时间:
2019-02-09 20:56:53
阅读次数:
175