-- 准备工作drop table if exists Emp;create table if not exists Emp( uid int primary key, sid int);insert into Emp values(1,1);insert into Emp values(2,2);...
分类:
数据库 时间:
2014-09-14 12:42:07
阅读次数:
180
$filename = dirname(__FILE__) . '/oldfilename.jpg';$out_filename = 'newfilename.jpg';if( ! file_exists($filename)){ echo 'Not Found' . $filename; ex.....
分类:
Web程序 时间:
2014-09-13 17:15:35
阅读次数:
281
之前的建议方法是把在xxx.info.plist文件中把icon already includes gloss and bevel effects 设置YES在Xcode5下,反复实现不成功,今天终于找到解决方案,如果使用xcassets设置方法,需要选择iOS icon is pre-render...
分类:
移动开发 时间:
2014-09-13 14:28:55
阅读次数:
223
function msubstr($str, $start=0, $length, $charset="utf-8", $suffix=true) { ? ? ? ? if(function_exists("mb_substr")) ? ? ? ? ? ? $slice = mb_substr($str, $start, $length, $charset); ? ?...
分类:
其他好文 时间:
2014-09-13 10:47:55
阅读次数:
190
When I try runningCode::Blocks, I get the following error message:Another program instance is already running. Code::Blocks is currently configured to...
分类:
其他好文 时间:
2014-09-13 10:36:44
阅读次数:
965
CREATE DATABASE IF NOT EXISTS mydb DEFAULT CHARSET utf8 COLLATE utf8_general_ci;CREATE USER 'root'@'%' IDENTIFIED BY '123456';GRANT ALL PRIVILEGES ON ...
分类:
数据库 时间:
2014-09-12 22:03:14
阅读次数:
285
判断字段是否存在: 1 DROP PROCEDURE IF EXISTS schema_change; 2 DELIMITER // 3 CREATE PROCEDURE schema_change() BEGIN 4 DECLARE CurrentDatabase VARCHAR(100)...
分类:
数据库 时间:
2014-09-12 19:04:33
阅读次数:
181
配置php网站的时候,经常会在页首出现Warning: session_start() [function.session-start]: Cannot send session cache limiter,也不影响页面打开。Warning: session_start() [function.se...
分类:
其他好文 时间:
2014-09-12 16:56:13
阅读次数:
174
举个例子:import csvimport ospath='/tmp/'file='test.csv'def generate_csv(path,file): if not os.path.exists(path): os.mkdir(path) files=os.path...
分类:
编程语言 时间:
2014-09-12 16:51:53
阅读次数:
235
org.tigris.subversion.javahl.ClientException: Attemptedto lock an already-locked dir异常解决方法myeclipse用svn提交的时候报错:Attempted to lock an already-locked dir...
分类:
系统相关 时间:
2014-09-12 16:51:43
阅读次数:
485