码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
JDBC中的Statement和PreparedStatement的区别
以Oracle为例吧 Statement为一条Sql语句生成执行计划, 如果要执行两条sql语句 select colume from table where colume=1; select colume from table where colume=2; 会生成两个执行计划 一千个查询就生成一千个执行计划! PreparedStatement用于使用绑定变量重用执行计划 ...
分类:数据库   时间:2014-05-22 13:44:55    阅读次数:380
leetcode -day19 Convert Sorted List to Binary Search Tree
1、 ?? Convert Sorted List to Binary Search Tree  Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 分析:将一个升序排列的链表转换为平衡二叉搜索树,采用递归的方式,先找到链表...
分类:其他好文   时间:2014-05-22 12:33:30    阅读次数:270
如何使用oracle 的DBMS_SQLTUNE package 来运行 Sql Tuning Advisor 进行sql 自动调优
如何使用oracle 的DBMS_SQLTUNE package 来运行 Sql Tuning Advisor 进行sql 自动调优 1》。这里简单举个例子来说明DBMS_SQLTUNE 的使用 首先现执行下某个想要调优的sql,然后获取sqlid SQL> select * from v$sqltext where sql_text like 'select * from dua...
分类:数据库   时间:2014-05-22 10:47:51    阅读次数:328
LeetCode: Valid Sudoku [035]
【题目】 Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.'. A partially filled sudoku which is valid. Note: A valid Sudoku board (par...
分类:其他好文   时间:2014-05-22 09:58:54    阅读次数:234
LeetCode: Search Insert Position [034]
【题目】 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Here are few examples. [1,3,5,6], 5 → 2 [1,3,5,6]...
分类:其他好文   时间:2014-05-22 09:41:59    阅读次数:195
关于Linq使用过程中遇见的一些小问题的总结
1 使用First()/FirstOrDefault()、Last()/LastOrDefault()方法返回序列中的第一个或者最后一个元素时,应该确保序列已经被正确排序。 int[] numbers = { 3, 1, 23, 10, 5, 12, 7, 2, 4}; int first = numbers.First(); //输出3 int firstOrdered = numbers.O...
分类:其他好文   时间:2014-05-22 07:35:10    阅读次数:196
mysql学习--mysql必知必会1
?? 如下为mysql必知必会第九章开始:   正则表达式用于匹配特殊的字符集合。mysql通过where子句对正则表达式提供初步的支持。 关键字regexp用来表示后面跟的东西作为正则表达式处理。 (.)是正则表达式的一个符号,表示匹配任意一个字符: mysql> select prod_name -> from products -> where prod_na...
分类:数据库   时间:2014-05-22 06:30:22    阅读次数:330
Oracle 索引
1、 索引介绍 索引是用于加速数据存取的数据对象,是对数据表中一个或多个列进行排序的结构。合理的使用索引可以大大降低I/O次数,从而提高数据访问性能。 2、 问题:为什么需要索引? Select * from scott.emp where empno=’8379’ --遍历emp表? 制约程序规模增大的两个瓶颈:网络和数据库,需要用更好的方式组织、管理数据。 3、 索引分类 ? 按索引列个数...
分类:数据库   时间:2014-05-22 06:25:09    阅读次数:346
泛型类及方法的基本使用
1、定义 public class EntBase:where T: new() { public List GetListDemo() { var lst = new List(); for (int i = 1; i...
分类:其他好文   时间:2014-05-22 03:35:38    阅读次数:166
在where子句中经常使用的运算符
比较运算符> = = 大于、小于、大于(小于)等于、不等于BETWEEN ...AND...显示在某一区间的值IN(set)显示在in列表中的值,例:in(100,200)LIKE ‘张pattern’模糊查询 _ %IS NULL判断是否为空逻辑运算符and &&多个条件同时成立or ||多...
分类:其他好文   时间:2014-05-22 00:51:48    阅读次数:658
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!