- 18
- 0
- 约1.28万字
- 约 43页
- 2019-04-04 发布于北京
- 举报
* * * * * * * * select t.*, SYS_CONNECT_BY_PATH(to_char(sxh, 000), .) sort from gg_dmnr t start with t.fid = 0048 connect by prior t.id = t.fid order siblings by sxh; select t.*, SYS_CONNECT_BY_PATH(to_char(sxh, 000), .) sort from gg_dmnr t start with t.fid = 0048 connect by prior t.id = t.fid order siblings by sxh; * * * * 第*页 DML——SELECT语句 1.语句中的关键字、字段、表名不区分大小写 2.取出的字段可以用+ - * / 进行运算 Select 1*2 from dual; 3.可以用distinct过滤重复记录 Select distinct dmmc from gg_dmnr; 4.语句后用分号作结束符 5.可以跨行写,但是关键字不能跨行 6.null和0及空格的区别 null:没有存储任何内容,有null参与的运算,其结果仍为null 0及空格:分配存储空间 7.查询空值时用 is null 非空 is not
原创力文档

文档评论(0)