DECLARE @dt datetime
SET @dt=GETDATE()
DECLARE @number int
SET @number=3
--1.指定日期该年的第一天或最后一天
--A. 年的第一天
SELECT CONVERT(char(5),@dt,120)+ '1-1 '
--B. 年的最后一天
SELECT CONVERT(char(5)...
分类:
数据库 时间:
2014-11-27 10:51:36
阅读次数:
293
oracle启动报错ORA-00845: MEMORY_TARGET not supported on this system
原因可能:ORACLE MEMORY_TARGET参数设置超过了oracle服务器本身内存、或超过了现在服务器空闲内存(就是oracle启动时无法获取设置的内存)
eg:
oracle version:11gR2
OS version:RedHat 6.4...
分类:
数据库 时间:
2014-11-27 10:43:28
阅读次数:
190
今天在开发的时候发现了一个iOS8的定位问题,执行操作之后,不会调用到定位之后的delegate方法中,然后我查看了一下手机上对应用的定位权限界面,发现我的应用的访问用户的地理位置的权限是空的,之后查了相关信息,得到以下解决方案:1. Appdelegate中:if (IOS_VERSION >=8...
分类:
移动开发 时间:
2014-11-27 10:38:24
阅读次数:
172
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:
其他好文 时间:
2014-11-27 10:36:40
阅读次数:
141
在jQuery中,通过$.browser对象可以获取浏览器的名称和版本信息,如$.browser.chrome为true,表示当前为Chrome浏览器,$.browser.mozilla为true,表示当前为火狐浏览器,还可以通过$.browser.version方式获取浏览器版本信息。 ...
分类:
Web程序 时间:
2014-11-27 10:32:01
阅读次数:
186
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2014-11-27 10:27:04
阅读次数:
205
1
电脑装成Linux之后,在Linux里面装虚拟机运行cocos2d-x-3.2时报如下错误:
plan3d.exe!cocos2d::GLView::initWithRect(const std::basic_string,std::allocator > & viewName, cocos2d::Rect rect,
float frame...
分类:
数据库 时间:
2014-11-27 06:49:13
阅读次数:
178
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-11-27 06:44:59
阅读次数:
215
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,...
分类:
其他好文 时间:
2014-11-27 06:43:44
阅读次数:
162
原文:Sql开发技巧简介
本文主要介绍下述几个技巧: 使用Row_Number分页
事务
根据条件刷选记录的技巧 分页
主要是使用了Row_Number()这个函数。一般如下:
declare @PageSize int;
declare @StartIndex int; with MyTable_...
分类:
数据库 时间:
2014-11-27 01:31:25
阅读次数:
227