REPLACE(REPLACE(code_temp,CHAR(13),""),CHAR(10),"");char(10):换行符char(13):回车符
分类:
数据库 时间:
2016-06-28 18:54:26
阅读次数:
317
//首先列出需要被操作的url $url_path = "http://www.sina.com.cn/abc/de/fg.php?id=1"; 方法一: //取出扩展名及参数 $temp = pathinfo($url_path,PATHINFO_EXTENSION); //找到扩展名 $temp ...
分类:
Web程序 时间:
2016-06-28 08:08:15
阅读次数:
182
命令格式如下: mysqldump -u用户名 -p密码 数据库名 表名 --where="筛选条件" > 导出文件路径 例子: 从meteo数据库的sdata表中导出sensorid=11 且 fieldid=0的数据到 /home/xyx/Temp.sql 这个文件中 mysqldump -ur ...
分类:
数据库 时间:
2016-06-27 19:48:32
阅读次数:
4022
输入 i come from tianjin. 输出 tianjin. from come i int main(){ int i = 0, j = 0, flag = 0, begin, end; char str[] = "i come from tianjin."; char temp; j ...
分类:
其他好文 时间:
2016-06-26 11:26:35
阅读次数:
172
<script type="text/javascript"> function HTMLEncode(html) { var temp = document.createElement ("div"); (temp.textContent != null) ? (temp.textContent ...
分类:
编程语言 时间:
2016-06-25 14:53:42
阅读次数:
202
我觉得linux脚本批处理的特性实在太棒了,改文件名就是一例。 #!/bin/bash # change all the names of the sub-folders. for((i=1;i<=5;i=i+1)) do cd /home/sophie/temp aa=$(ls | grep "$ ...
分类:
其他好文 时间:
2016-06-25 06:12:02
阅读次数:
146
AgentLogic*temp_agent_logic=[[AgentLogicalloc]init];[temp_agent_logicsetViewController:viewController];m_agent_logic=temp_agent_logic;#import"RootViewController.h"-(void)setViewController:(UIViewController*)view_controller;@interfaceAgentLogic()@property(no..
分类:
移动开发 时间:
2016-06-23 22:31:27
阅读次数:
236
<?php
//冒泡算法
$array=array(5,2,576,823,21,56,79,99);
echo‘<pre/>‘;
print_r($array);
$count=count($array);
for($i=0;$i<$count;$i++){
for($j=$i;$j<$count;$j++){
if($array[$j]>$array[$i]){
$temp=$array[$i];
$array[$i]=$array[$j]..
分类:
编程语言 时间:
2016-06-23 19:09:54
阅读次数:
202
1、为什么要有粘滞位?Linux中有一个存放临时文件的目录/tmp(类似于Windows中的temp目录),每个用户产生的临时文件都存放在此目录下,也就是说每个用户对/tmp目录都应该有写权限(否则无法拷贝生成文件),这样造成一个问题,比如,A同学在/tmp目录下创建了一个文件,B同学看..
分类:
系统相关 时间:
2016-06-23 06:37:58
阅读次数:
244
1、为什么要有粘滞位?Linux中有一个存放临时文件的目录/tmp(类似于Windows中的temp目录),每个用户产生的临时文件都存放在此目录下,也就是说每个用户对/tmp目录都应该有写权限(否则无法拷贝生成文件),这样造成一个问题,比如,A同学在/tmp目录下创建了一个文件,B同学看..
分类:
系统相关 时间:
2016-06-23 06:37:06
阅读次数:
327