为了自由,幸福而不断奋斗,前行!!!

一笑看风云过....

博客园 首页 新随笔 联系 订阅 管理

2011年4月1日 #

摘要: 以下内容转自网络,感觉这个比较有用。收藏一下。The following are number examples for the to_char function.to_char(1210.73, '9999.9')would return '1210.7'to_char(1210.73, '9,999.99')would return '1,210.73'to_char(1210.73, '$9,999.00')would return '$1,210.73'to_char(21, '00 阅读全文
posted @ 2011-04-01 16:55 YAO'STAR 阅读(452) 评论(0) 推荐(0) 编辑

摘要: 一、交叉连接(cross join)交叉连接(cross join):有两种,显式的和隐式的,不带on子句,返回的是两表的乘积,也叫笛卡尔积。例如:下面的语句1和语句2的结果是相同的。语句1:隐式的交叉连接,没有cross join。select o.id, o.order_number, c.id, c.namefrom orders o , customers cwhere o.id=1;语句2:显式的交叉连接,使用cross join。select o.id,o.order_number,c.id,c.namefrom orders o cross join customers cwhe 阅读全文
posted @ 2011-04-01 12:19 YAO'STAR 阅读(394) 评论(0) 推荐(0) 编辑