CREATE FUNCTION REMOVE_ENTER (@DESC
VARCHAR(8000))RETURNS VARCHAR(8000)ASBEGIN DECLARE @STR VARCHAR(8000) SET
@STR=@DESCWHILE SUBSTRING(@STR,LEN...
分类:
数据库 时间:
2014-05-17 04:39:17
阅读次数:
287
desc "Update image" params do requires
:id,:type =>String,:desc =>"ID." requires :image,:type
=>Rack::Multipart::UploadedFile,:desc =>"Image f...
在配置apache服务时经常遇到DocumentRoot must be a
directory的错误提示,刚接触到apache时折腾了几个小时才找到错误的原因,出现这样的错误一般都是由于selinux的原因。SELinux(Security-Enhanced
Linux) 是美国国家安全局(NSA...
分类:
系统相关 时间:
2014-05-15 10:07:38
阅读次数:
561
1.相关数据表
Score表
[User]表
SQL语句如下:
--查询出各科成绩最好的学生信息
--自连接
--SELECT TOP 1 * FROM Score B WHERE B.ScoreName = '数学' ORDER BY B.Score DESC
SELECT A.ID,U.Name,A.ScoreName,A.Score
FROM Score A,[Use...
分类:
数据库 时间:
2014-05-15 05:02:05
阅读次数:
477
LeetCode-001 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:
其他好文 时间:
2014-05-15 04:34:50
阅读次数:
293
05-14 22:16:42.808: E/AndroidRuntime(22906): FATAL
EXCEPTION: main05-14 22:16:42.808: E/AndroidRuntime(22906):
java.lang.RuntimeException: Unable to s...
分类:
其他好文 时间:
2014-05-14 23:16:55
阅读次数:
405
MySQL中默认排序是acs(可省略):从小到大
desc :从大到小,也叫倒序排列。...
分类:
数据库 时间:
2014-05-14 21:19:21
阅读次数:
397
Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match....
分类:
其他好文 时间:
2014-05-14 19:30:36
阅读次数:
292
/* * Draw traversal performs several drawing
steps which must be executed * in the appropriate order: * * 1. Draw...
分类:
移动开发 时间:
2014-05-14 07:54:54
阅读次数:
399
1 查询表结构
语法:desc 表
2 查询所有列
语法:select * from 表名
3 查询指定列
语法:select 列名1,列名 from 表名
4 取消重复行
语法:select distinct 列名1,列名2 from 表名
5 使用列别名,并且加...
分类:
其他好文 时间:
2014-05-13 13:31:41
阅读次数:
240