1.创建一个员工表(并指明字符集为UTF8)
drop table if exists employee;
create table employee(
id int,
name varchar(20),
gender varchar(6),
birthday date,
entry_date date,
job varchar(30),
...
分类:
数据库 时间:
2014-08-05 22:38:10
阅读次数:
336
题目原文:
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of
S is 1000, and there exists one unique longest palindromic substring.
题意解析:
最长回文子串。就是...
分类:
其他好文 时间:
2014-08-05 15:56:59
阅读次数:
290
1 作业维护IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[BasicCallDB].[dbo].[shx_BasicCallDB]') AND type in (N'U'))truncate TABLE [.....
分类:
其他好文 时间:
2014-08-05 13:23:19
阅读次数:
270
1 判断数据库是否存在 if exists (select * from sys.databases where name = '数据库名') drop database [数据库名]2 判断表是否存在 if exists (select * from sysobjects where id = ....
分类:
数据库 时间:
2014-08-04 21:03:07
阅读次数:
300
----formshownewpath:=‘/storage/sdcard0/DCIM/100ANDRO/GRJKDAGLGXYSF‘;ifnotTDirectory.Exists(newpath)thenbeginTDirectory.CreateDirectory(newpath);//Createafolderend;newpath:=newpath+‘/‘;----存入本机varfilename:string;newfile:Tfilestream;beginfilename:=‘update..
分类:
移动开发 时间:
2014-08-04 14:42:27
阅读次数:
256
题目:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo....
分类:
编程语言 时间:
2014-08-04 04:10:26
阅读次数:
374
相关子查询是指引用了外部查询中出现的表的列的子查询。这就意味着子查询要依赖于外部查询,不能独立地调用它。在逻辑上,相关子查询会为每个外部行单独计算一次。这篇文章我想从以下两个方面进行总结。 1,一个相关子查询的简单例子 2,相关子查询和EXISTS谓词 一个相关子查询的简单例子 例如,以下查询会为每...
分类:
其他好文 时间:
2014-08-03 17:32:15
阅读次数:
329
1、@@ERROR 返与@@ERROR 近语句错误码局限于DML语句select语句执行现错误则返等于0错误码没错则返0通使用判断语句没执行功-- Create Schema if not one exists with same name and owner set @stmtS = 'cr...
分类:
数据库 时间:
2014-08-02 23:12:44
阅读次数:
271
Watson gives an array A1,A2...AN to Sherlock. Then he asks him to find if there exists an element in the array, such that, the sum of elements on its ...
分类:
其他好文 时间:
2014-08-02 12:36:13
阅读次数:
185
1. 存储过程例子: DELIMITER $$ DROP PROCEDURE IF EXISTS HelloWorld$$ CREATE PROCEDURE HelloWorld() BEGIN SELECT "Hello World!"; END$$ DELIMITER ; 2. 变量声明 ...
分类:
数据库 时间:
2014-08-02 09:57:43
阅读次数:
257