上一页 1 ··· 5 6 7 8 9
摘要: 解释:引用自wiki:An SQL result set is a set of rows from a database, as well as metadata about the query such as the column names, and the types and sizes o... 阅读全文
posted @ 2016-01-20 18:13 Splace 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 本文基于转载: lpad函数从左边对字符串使用指定的字符进行填充。lpad意思是从左边填充的意思。 语法格式如下: lpad( string, padded_length, [ pad_string ] ); string :准备被填充的字符串; padded_length:填充之后的字符串长... 阅读全文
posted @ 2016-01-20 18:06 Splace 阅读(4041) 评论(0) 推荐(0) 编辑
摘要: round()函数:四舍五入函数传回一个数值,该数值按照指定精度进行四舍五入运算的结果。语法:round(number[,decimals])Number:待处理的函数Decimals:精度,默认为0;Select round(123.456,0) as a,round(123.456,1) as ... 阅读全文
posted @ 2016-01-20 17:25 Splace 阅读(1560) 评论(0) 推荐(0) 编辑
摘要: 返回处理后的数据,不同于round()(对数值进行四舍五入处理),该函数不对指定小数前或后的数值部分进行舍入处理。 语法:trunc(number[,decimals]) 其中,number为待做处理的数值,decimals为需要保留小数点后面的位数,即精度,默认值为0,此时将截去所有的小数部分。 阅读全文
posted @ 2016-01-20 16:06 Splace 阅读(22291) 评论(0) 推荐(0) 编辑
摘要: Dual表是每个数据库创建时默认生成的,该表仅有一列一行。 1)分析dual表执行,如下: 2)应用: 在oracle数据库中,dual表作为一个虚表存在的,因为oracle的查询操作语句必须满足格式:select columnname from tablename,其中的from所指向的表示必须的 阅读全文
posted @ 2016-01-19 23:12 Splace 阅读(1831) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9