mysql中isnull,ifnull,nullif的用法如下: isnull(expr) 的用法:如expr 为null,那么isnull() 的返回值为 1,否则返回值为 0。 mysql> select isnull(1+1);-> 0mysql> select isnull(1/0);-> ...
分类:
数据库 时间:
2016-05-10 16:46:52
阅读次数:
251
分页查询的使用: 显示页面运行结果: 封装分页查询类: ...
分类:
Web程序 时间:
2016-05-10 16:46:41
阅读次数:
278
Ctrl+D: 删除当前行 Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ 当前行和上面一行交互位置(同上) Alt+← 前一个编辑的页面 Alt+→ 下一个编辑的页面(当然是针对上面那条来说了) Ctrl+L 定位在某行 Ctrl+/ 注释当前行,再按则取消 ...
分类:
系统相关 时间:
2016-05-10 16:44:13
阅读次数:
151
public class NGlbGlobeXComm { public static T GetPrivateField<T>(object instance, string fieldname) { BindingFlags flag = BindingFlags.Instance | Bind ...
—在优化查询SQL语句,查看索引使用情况SQL语句: select db_name(database_id) as N'数据库名称', object_name(a.object_id) as N'表名', b.name N'索引名称', user_seeks N'用户索引查找次数', user_sc ...
分类:
数据库 时间:
2016-05-10 16:45:09
阅读次数:
222
时间:2016-05-10 16:23:29 星期二 题目编号:[2016-05-10][51nod][1015 水仙花数] 题目大意: 水仙花数是指一个 n 位数 ( n >= 3 ),它的每个位上的数字的 n 次幂之和等于它本身。(例如:1^3 + 5^3 + 3^3 = 153), 给出一个整... ...
分类:
其他好文 时间:
2016-05-10 16:44:42
阅读次数:
305
传送门 Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[ ...
分类:
其他好文 时间:
2016-05-10 16:45:27
阅读次数:
397
Python是开发语言,如果有个好的的开发工具,将事半功倍,pycharm是个不错的选择。 download直接去官网 首先需要激活,http://jingyan.baidu.com/article/455a9950baf5bea167277877.html。 设置皮肤和代码的字体,http://j ...
分类:
其他好文 时间:
2016-05-10 16:43:31
阅读次数:
811
用的是数据库sqlserver2000,唉,有点老了,好处是到处都有,安装方便。 select ( select count(*) from temp_gzsphzb as t1 where spid <=t2.spid) as xh ,* from temp_gzsphzb as t2order ...
分类:
数据库 时间:
2016-05-10 16:45:38
阅读次数:
310
package com.txq.dataStructure; import java.util.ArrayList;import java.util.List;import java.util.Queue;import java.util.concurrent.ConcurrentLinkedDeq ...
分类:
其他好文 时间:
2016-05-10 16:45:20
阅读次数:
503
1、索引创建原则: 在经常需要搜索的列上创建索引,将加快查询速度。 在作为主键的列上创建索引,强制该列的唯一性和组织表中数据的排列结构。 在经常用于连接的列(主要是外键)上创建索引,加快连接的速度。 在经常需要根据范围进行搜索的列上创建索引,因为索引已经排序,其指定的范围是连续的。 在经常需要排序的 ...
分类:
其他好文 时间:
2016-05-10 16:43:38
阅读次数:
171
调用程序: package com.fabao.test; import java.sql.*; public class MySQLConnection { public static void main(String[] args) { Connection conn = null; State ...
分类:
数据库 时间:
2016-05-10 16:43:48
阅读次数:
186
题目来源: https://leetcode.com/problems/reverse-words-in-a-string/ 题意分析: 给定一个字符串,里面包括多个单词,将这个字符串的单词翻转,例如"the sky is blue",得到"blue is sky the". 题目思路: 首先获取每 ...
分类:
编程语言 时间:
2016-05-10 16:42:05
阅读次数:
262
...
分类:
编程语言 时间:
2016-05-10 16:43:06
阅读次数:
200
# 第一步需要检查Mysql的配置 在my.cnf里面配置好允许远程 在[mysqld]里面增加 skip-name-resolve # 第二步 配置账号远程权限 grant all privileges on *.* to 'mysql'@'%' identified by 'passwd' wi ...
分类:
数据库 时间:
2016-05-10 16:43:51
阅读次数:
1948
Redis是一个开源的、K-V型数据库,用于提供高性能的分布式缓存。 Jedis是Redis首选的Java客户端开发包。 其中,Jedis与Spring整合配置如下: 至此,可以编写自己的Service,注入shardedJedisPool对象,完成针对缓存的各项操作。 ...
分类:
编程语言 时间:
2016-05-10 16:41:23
阅读次数:
344
...
分类:
其他好文 时间:
2016-05-10 16:42:41
阅读次数:
165