• Oracle-04编程及游标

    declare m number := 3; begin for y in -m..m loop for x in -m..m loop if abs(y) + abs(x) <= m then dbms_output.put('*'); else dbms_output.put(' '); end if; end loop; dbms_output.new_line(); end loop; end;

    0
    85
    215KB
    2020-04-24
    13
  • Oracle-03多表查询及编程

    --使用PLSQL输出三角形,只要是三个角 declare m number := 10; begin for x in reverse -m..m loop for y in -m..m loop if abs(y) + abs(x) <= m and x>=0 then dbms_output.put('*'); else dbms_output.put(' '); end if; end loop; dbms_output.new_line(); end loop; end;

    0
    63
    256KB
    2020-04-24
    12
  • Oracle-02多表查询

    select * from bonus; select * from salgrade; /* 多表查询: 笛卡尔积: 实际上是两张表的乘积,但是在实际开发中没有太大意义 格式: select * from 表1,表2 */ select * from emp; select * from dept; select * from emp, dept; select * from emp e1, dept d1 where e1.deptno = d1.deptno;

    0
    150
    210KB
    2020-04-24
    9
  • Oracle-01查询学习.pdf

    select * from emp; select 1+1; --在Oracle等于报错 ,在MYSQL中输出结果是2 /* dual : oracle中的虚表 ,伪表, 主要是用来补齐语法结构 */ select 1+1 from dual; select * from dual; select 1 from emp; --直接写一个常量比写 * 要高效 select count(1) from emp; select count(*) from emp; /* 别名查询: 使用as 关键字, 可以省略 别名中不能有特殊字符或者关键字, 如果有就加双引号 */ select ename 姓名, sal 工资 from emp; select ename "姓 名", sal 工资 from emp;

    0
    130
    248KB
    2020-04-22
    0
  • mysql数据库操作.pdf

    Mysql操作命令大全。一、操作数据库;二、数据库中表的操作;三、操作表记录(增删改查,Create Read Update Delete);四、使用limit关键字查询部分数据;五、外键;六、多表设计多表查询;七、子查询;八、事务控制;九、视图;十、权限管理

    0
    163
    798KB
    2020-04-19
    10
  • 阅读者勋章

    授予在CSDN APP累计阅读博文达到7天的你,是你的坚持与努力,使你超越了昨天的自己。
  • 持续创作

    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 创作能手

    授予每个自然周发布9篇以上(包括9篇)原创IT博文的用户
  • 分享小兵

    成功上传3个资源即可获取
  • 分享学徒

    成功上传1个资源即可获取
  • 签到新秀

    累计签到获取,不积跬步,无以至千里,继续坚持!
  • 新人勋章

    用户发布第一条blink获赞超过3个即可获得
关注 私信
上传资源赚积分or赚钱