上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页
摘要: emp表中,使用job字段、empno字段升序排序(如job相同比较empno): select * from emp order by job,empno; 结果: 降序只需在最后加上desc: select * from emp order by job,empno desc; //此表示按jo 阅读全文
posted @ 2020-02-10 16:13 Scorpicat 阅读(145) 评论(0) 推荐(0) 编辑
摘要: distinct去重去的是两条完全相同的记录。 所以,查询的两条记录中不同字段不同也不会被去重,如: select distinct job,mgr from emp; 结果 可以看到JOB记录下出现了多个clerk,但它们的mgr不同,所以不算重复。 阅读全文
posted @ 2020-02-10 16:04 Scorpicat 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 在sql中我们使用“||'要拼接的字符'||”来查询并拼接多个字段。 如下所示,查询并拼接字段EMPNO和ENAME的结果: select empno||'对应姓名:'||ename as 查询结果 from emp; 结果如: 其中as是查询结果重名关键字。 阅读全文
posted @ 2020-02-10 15:51 Scorpicat 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 语法使用方法请跳转:点击跳转 阅读全文
posted @ 2020-02-10 15:14 Scorpicat 阅读(190) 评论(0) 推荐(0) 编辑
摘要: cmd 输入命令:sqlplus /nolog 输入命令 : conn /as sysdba 输入命令: alter user 用户名 identified by 新密码 阅读全文
posted @ 2020-02-10 15:09 Scorpicat 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Oracle三种角色 normal--普通用户 system--管理员 sys--超级管理员 账号操作 创建账号 使用管理员登录,打开sql命令窗口 1、 创建自定义用户: create user 用户名 identified by 密码; 普通用户不具备创建用户的权限,需要使用system账户进行 阅读全文
posted @ 2020-02-10 14:18 Scorpicat 阅读(137) 评论(0) 推荐(0) 编辑
摘要: OracleXE 点击跳转下载 PLSQL 点击跳转下载 下载页面对应版本下拉框可选择中文补丁安装 PLSQL的使用 导入scott用户 由于XE版本没有scott用户,为了方便练习,我们需要导入11g里的scott用户。 点击下载资料 提取码:mpfx 下载解压后找到scott.sql文件,打开P 阅读全文
posted @ 2020-02-10 14:04 Scorpicat 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 效果先看 知识点 class为badge即可,通常放在span标签里。 完整代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="css/bootstr 阅读全文
posted @ 2020-02-09 16:00 Scorpicat 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 效果先看 知识点 bootstrap下拉框由div>button ul>li>a 构成 div的类为:dropdown a标签必须写 button的类为: dropdown-toggle 必带属性:data-toggle="dropdown" ul的类为:dropdown-menu 获取事件触发的对 阅读全文
posted @ 2020-02-09 15:55 Scorpicat 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 模拟网站 https://redash.io/ 效果先看 完整代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>栅格练习-网站仿写</title> <link rel="stylesheet" type="text/css" 阅读全文
posted @ 2020-02-09 14:58 Scorpicat 阅读(355) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页