码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
省份不能重复,下拉表变单条显示
一。省份不重复 CommonSqlMap.xml中新写一组,(用WHERE条件) <select?id="selectProvince1" resultClass="cn.agriculture.web.form.Item"> SELECT?province_name?as?label, ???????province_...
分类:其他好文   时间:2015-07-29 19:57:17    阅读次数:136
Oracle inactive session (last_call_et)
注意last_call_et的值,select s.status,s.last_call_et,s.* from v$session s where username='DDD';在本例中,开了个sqlplus,然后对一张大表进行select * from big_table;可以开到一直有结果显示...
分类:数据库   时间:2015-07-29 17:07:04    阅读次数:204
SQL 语法之“增”、“删”、“改”、“查”
/* 四、查 1.普通查询 语法:select from [where ] [order by [asc或desc]] */ /*    1).查询所有数据行和列     例:select * from a     说明:查询a表中所有行和 */ select *from person /*    2).查询部...
分类:数据库   时间:2015-07-29 15:55:46    阅读次数:167
leetcode-Product of Array Except Self
https://leetcode.com/problems/product-of-array-except-self/Given an array of n integers where n > 1, nums, return an array output such that output[i] ...
分类:其他好文   时间:2015-07-29 15:26:48    阅读次数:95
oracle11g exp导出问题:部分表导不出来
在oracle导出表的命令exp时候发现一个问题,就是部分表完全的导不出来,经检查发现只要是表为空的都会导不出来。 在如下表中发现segment_created都为NO的是导不出来的,经查询后,将语句提取出来执行即可。 select 'alter table '|| table_name ||' allocate extent;'  from user_tables where segmen...
分类:数据库   时间:2015-07-29 14:11:51    阅读次数:186
ruby 遍历mongo数据
next_played_videos = @channel.videos.active.where(:begin_time.gt => begin_time).asc(:begin_time) next_played_videos.each do |video| video...
分类:其他好文   时间:2015-07-29 13:49:16    阅读次数:116
Oracle procedure/function
--函数的创建create function func1(dno number)return NUMBER--必须带有返回值is v_max number;--定义返回值 begin select max(sal) into v_max--赋值 from emp where de...
分类:数据库   时间:2015-07-29 11:47:01    阅读次数:132
sql 语句中where 1=1 1=2作用
写一个1=1是为了后面的条件。这个SQL应该是在程序中拼出来的,程序中首先不能肯定后面的条件是否肯定会有,为了程序简单先加上where1=1,后面的就可以直接拼接。如果不这样处理就需要在拼接后面的每一个条件时都要判断是不是where子句的第一个件条,以决定是否要在前面加andpub..
分类:数据库   时间:2015-07-29 06:41:08    阅读次数:325
深入分析java序列化
概念先来点简单的概念: what?why? 什么是序列化?为什么要序列化? 答曰:将java对象转成字节序列,用以传输和保存 where? 使用场景是什么? 答曰:对象的传输;状态的备份,例如jvm的dump文件; 好了,不装*了,下面说的详细点。其实对象的序列化主要有两种用途: 把对象的字节序列永久地保存到硬盘上,通常存放在一个文件中 在网络上传送对象的字节序列 在很多应用中,需要对...
分类:编程语言   时间:2015-07-28 23:15:28    阅读次数:228
LeetCode#11 Container With Most Water
Problem Definition:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai).n vertical lines are drawn such ...
分类:其他好文   时间:2015-07-28 22:35:53    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!