摘要:
多个表关联的sql语句,如果某个关联的表只取个别字段,则子查询效率比表关联高一些。 以下的子查询取部门和职位的描述的写法,比直接关联部门和职位表取描述的效率高一些。 WITH TMP AS (SELECT B.EMPLID, B.EMPL_RCD, B.setid_dept, B.DEPTID, B 阅读全文
摘要:
这里用到了Oracle的一个树形结构查询函数select * from record START WITH A.TREE_NODE IN ('COST_CTR_10053')CONNECT BY PRIOR A.TREE_NODE_NUM = A.PARENT_NODE_NUM.查出指定节点下的所以 阅读全文
摘要:
Understanding SQR Data Elements !Variables!Variables are storage places for text or numbers that you define and manipulate.!• $ begins a text or date 阅读全文