说明,sql中的if和else是不能在select 语句中使用的。只能用来控制sql程序的流程。只能用case when。CREATE TABLE USER(NAME VARCHAR(20) NOT NULL,---姓名SEX INTEGER,---性别(1、男2、女)BIRTHDAY DATE--...
分类:
数据库 时间:
2014-10-21 15:10:20
阅读次数:
251
转载自:http://stackoverflow.com/questions/9192309/the-main-difference-between-java-cC++ supports pointers whereas Java does not pointers. But when many ....
分类:
编程语言 时间:
2014-10-20 13:01:17
阅读次数:
164
Ruby的case表达式有两种形式:第一种形式接近于一组连续的if语句:它让你列出一组条件,并执行第一个为真的条件表达式所对应的语句。第二种形式,在case语句的顶部指定一个目标,而每个when从句列出一个或者多个比较条件和if一样,case返回执行的最后一个表达式的值;而且如果表达式和条件在同一行...
分类:
其他好文 时间:
2014-10-19 22:35:12
阅读次数:
166
转载自http://lj.soft.blog.163.com/blog/static/7940248120109215191358/Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sex WHEN '1' THEN '男' WH...
分类:
数据库 时间:
2014-10-19 19:49:39
阅读次数:
240
SELECT 表名 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'') else '' end, ...
分类:
数据库 时间:
2014-10-19 18:25:51
阅读次数:
224
Maze
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)
Total Submission(s): 1713 Accepted Submission(s): 659
Special Judge
Problem Description
When wake...
分类:
其他好文 时间:
2014-10-19 17:07:21
阅读次数:
247
因为在extract參数文件里使用了where语句,而where后面的的条件列又不是主键,没有为update、delete操作记录日志,因此会报1008错误。Applies to:Oracle GoldenGate - Version 10.0.0.1 and laterInformation in...
分类:
其他好文 时间:
2014-10-18 22:10:57
阅读次数:
182
Preface "The code is more what you’d call guidelines than actual rules" – truer words were never spoken. It’s important when writing code to understa....
分类:
其他好文 时间:
2014-10-18 16:43:43
阅读次数:
189
Background
Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations...
分类:
其他好文 时间:
2014-10-17 22:01:08
阅读次数:
231
Link:http://stackoverflow.com/questions/4343735/avoiding-resource-is-out-of-sync-with-the-filesystemhttp://hi.baidu.com/golotus/item/2f9713d03b8f9414d...
分类:
系统相关 时间:
2014-10-17 15:26:04
阅读次数:
209