--使用正则表达式 -- ^ 开始 , . 任意字符 SELECT Name, Continent, Population FROM Country WHERE Name REGEXP '^.[a-e].*' ORDER BY Name; -- $ 结尾 SELECT Name, Continent...
分类:
数据库 时间:
2015-09-04 11:03:10
阅读次数:
216
mysql> delete from `zhangchao` where x='NULL'; Query OK, 0 rows affected (0.00 sec) mysql> delete from `zhangchao` where x=NULL; Query OK, 0 rows affe...
分类:
数据库 时间:
2015-09-03 14:04:45
阅读次数:
203
在MySQL里面show variables where variable_name like '%auto%'这条语句可以正常执行,但是show processlist where host like '%192%'就会报错了:Error Code : 1064You have an error ...
分类:
其他好文 时间:
2015-09-03 11:33:26
阅读次数:
162
firefox突然变成了用gedit打开pdf文件,Where the link to http://download.jw.org/files/media_m...E_20150201.pdf caused the problem of the file being offered to be o...
分类:
其他好文 时间:
2015-09-03 08:09:46
阅读次数:
245
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2015-09-03 07:01:23
阅读次数:
197
ORACLE数据库sql语句优化的学习笔记概要:最近看的一本oracle数据库的书,这里写一下关于sql语句的优化;一,一般的sql优化技巧1.Select语句中避免使用" * "2.使用where子句替代having子句 在select语句中,使用where子句过滤行,使用having子句过滤.....
分类:
数据库 时间:
2015-09-03 01:51:04
阅读次数:
171
Problem:Given a range [m, n] where 0 00111010101011...We can we reach the '1' in high index, all digits behind after it must change once. That's to s....
分类:
其他好文 时间:
2015-09-03 00:38:49
阅读次数:
178
php大力力 [042节] 今天做了一个删除功能 if(isset($_GET['action'])){ if($_GET['action']=="del"){ $sql = "delete from tbl_media where MadiaName = '{$_GET['MadiaName...
分类:
Web程序 时间:
2015-09-03 00:37:24
阅读次数:
236
//php<?include_once ("inc/auth.inc.php");$id = isset($_POST['app_id']) ? $_POST['app_id'] : '0';$query = "SELECT * FROM office_transhistory WHERE CYC....
分类:
Web程序 时间:
2015-09-02 18:51:51
阅读次数:
256
set datefirst 1 select count(*) from (select date from(select dateadd(dd,number,'2015-01-01') date from master..spt_values where [type] = 'p' and numb...
分类:
其他好文 时间:
2015-09-02 18:49:18
阅读次数:
163