码迷,mamicode.com
首页 >  
搜索关键字:exists    ( 4689个结果
Mysql 存储过程+定时任务,完成分区自动维护
建表:drop table if exists terminal_parameter;CREATE TABLE `terminal_parameter` ( `terminal_parameter_id` int(11) NOT NULL AUTO_INCREMENT, .................
分类:数据库   时间:2014-06-11 22:11:36    阅读次数:542
perl 函数返回hash引用
my %h=%{foo()} #接收hashsub foo{ my %fh; $fh{a}=1; return \%fh; #返回hash引用}grep??在hash中,当检验一个元素值是否被定义是用defined,当检验一个key在hash中是否存在时,用exists。
分类:其他好文   时间:2014-06-11 09:40:45    阅读次数:440
报表打印
核心代码:/*String filename="角色信息表.xls";String realpath="d:\\"+filename;File f =new File(realpath);if(f.exists());else f.createNewFile();*/response.setChar...
分类:其他好文   时间:2014-06-11 09:30:21    阅读次数:243
哥德尔,图灵和康托尔
## 哥德尔编号一个形式系统仅是一系列公理和规则,比如用简单的英文来记录公理,“Number 0 exists”。但我们能否把自然数关联到公理和规则呢?我们知道,在计算机上一切都是数字。比如,字母 “N” 是78,字母 "u" 是 117,诸如此类。“Number”这个单词对于我们来讲,就像 781...
分类:其他好文   时间:2014-06-09 23:46:38    阅读次数:309
MySql 分页存储过程
DELIMITER $$ #修改分隔符为 $$ DROP PROCEDURE IF EXISTS sp_MvcCommonDataSource$$ #分隔符 CREATE PROCEDURE sp_MvcCommonDataSource ( #输入参数 _fields VARCHAR(2000), #要查询的字段,用逗号(,)分隔 _tables TEXT,  #要查询的表 _wher...
分类:数据库   时间:2014-06-07 11:32:22    阅读次数:254
爬虫程序
下面是一个简单的爬虫程序。#!/usr/bin/env pythonfrom sys import argvfrom os import makedirs, unlink, sepfrom os.path import dirname, exists, isdir, splitextfrom str...
分类:其他好文   时间:2014-06-05 12:50:50    阅读次数:341
Spring+quartz 动态任务调度
需求是这样的:系统中会有很多的执行时间,三个或者四个这样,不确定,以后可能是五个!当用户在页面添加执行时间时,我们后台也要对应执行用户添加的时间。 数据库设计: DROP TABLE IF EXISTS `test_time_task`; CREATE TABLE `test_time_task` ( `status` int(11) DEFAULT NULL COMMENT '状态:0为...
分类:编程语言   时间:2014-06-05 10:00:30    阅读次数:245
LeetCode: Word Search [079]
【题目】 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be use...
分类:其他好文   时间:2014-06-03 01:07:58    阅读次数:329
Leetcode: Longest Palindromic Substring. java
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:编程语言   时间:2014-06-02 09:22:03    阅读次数:328
projecteuler---->problem=9----Special Pythagorean triplet
title: A Pythagorean triplet is a set of three natural numbers, a b c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly one Pythagorean triplet for wh...
分类:其他好文   时间:2014-06-01 09:17:53    阅读次数:251
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!