给定一个board字符矩阵,可以从任意一个点开始经过上下左右的方式走,每个点只能走一次,如果存在一条路走过的字符等于给定的字符串,那么返回trueGiven a 2D board and a word, find if the word exists in the grid.The word can...
分类:
其他好文 时间:
2014-11-17 01:37:43
阅读次数:
306
下面是一个MySQL存储过程的简单例子,目的是返回最新插入的一条记录的id值。 demiliter | drop procedure if exists addUser | create procedure addUser(in pname varchar(40),in b...
分类:
数据库 时间:
2014-11-16 21:34:27
阅读次数:
414
-- SQL SERVER 判断是否存在某个触发器、储存过程-- 判断储存过程,如果存在则删除IF (EXISTS(SELECT * FROM sysobjects WHERE name='procedurename' AND type='P')) DROP PROCEDURE proceduren...
分类:
数据库 时间:
2014-11-16 21:21:27
阅读次数:
397
Given any $k$-tupel of linearly independent vectors $X$ as above, there exists a $k$-tuple $Y$ biorthognal to it. If $k=n$, this $Y$ is unique. \eex$$...
分类:
其他好文 时间:
2014-11-16 12:02:08
阅读次数:
151
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 "adjace...
分类:
其他好文 时间:
2014-11-16 09:19:40
阅读次数:
218
在liunx上读取文件时总是出问题。 比如做ios推送的时候,总是读取不到pem文件,但是程序通过file_exists判断了文件是否存在,但是还总是出错,大神检查下原来是权限的问题, 所以试着用fopen来测试下,结果发现可以判断到,所以以后需要注意了。如果有文件相关的东西,应该先判断下是否存在....
分类:
其他好文 时间:
2014-11-15 20:05:06
阅读次数:
216
import sqlite3db = r"test.db"drp_tb_sql = "drop table if exists staff"crt_tb_sql = """create table if not exists staff( id integer primary key autoinc...
分类:
数据库 时间:
2014-11-14 22:25:49
阅读次数:
253
原文: mysql支持的数据类型及其测试 1.基础知识
1.1如何来查看mysql的帮助手册
?int
Help float;
1.2创建表的规则
CREATE TABLE [IF NOT EXISTS] tbl_name(
字段名 字段类型 [完整性的约束条件]);
1.3如何向表中插入数据
IN...
分类:
数据库 时间:
2014-11-14 19:27:56
阅读次数:
354
mysql中常用的语句:1:创建带自增长的主键的表DROP TABLE IF EXISTS user_login ;CREATE TABLE user_login ( user_id INT UNSIGNED NOT NULLAUTO_INCREMENT, user_name VARCHAR(50)...
分类:
数据库 时间:
2014-11-14 14:11:33
阅读次数:
141
sql脚本执行前加上:CREATE DATABASE IF NOT EXISTS mydatabase DEFAULT CHARSET utf8 COLLATE UTF8_GENERAL_CI;use broadleaf;替换原备份中建表编码:ENGINE=MyISAM DEFAULT CHARSE...
分类:
数据库 时间:
2014-11-14 14:02:53
阅读次数:
250