• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
爱白菜的小昆虫
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 9 10 11 12 13 14 15 16 17 18 下一页
2015年4月24日
SQL null值 查询null
摘要: select * from emp;--查询comm为null的员工信息select * from emp where comm is null;--查询comm不为null的员工信息select * from emp where comm is not null; 阅读全文
posted @ 2015-04-24 12:12 爱白菜的小昆虫 阅读(291) 评论(0) 推荐(0)
SQL top order between 一起使用
摘要: select * from emp;--输出工资在[1500,3000]范围之内的工资最高的前5个员工信息select top 5 * from emp where sal between 1500 and 3000 order by sal desc; 阅读全文
posted @ 2015-04-24 11:41 爱白菜的小昆虫 阅读(415) 评论(0) 推荐(0)
SQL order 排序
摘要: select * from emp;--按照工资升序排序select * from emp order by sal;--按照工资降序排序select * from emp order by sal desc; 阅读全文
posted @ 2015-04-24 11:34 爱白菜的小昆虫 阅读(224) 评论(0) 推荐(0)
SQL top查询
摘要: select *from emp;--查询表前5行 员工信息select top 5 * from emp;--查询表前15%行的员工信息select top 15 percent * from emp; 阅读全文
posted @ 2015-04-24 00:14 爱白菜的小昆虫 阅读(348) 评论(0) 推荐(0)
2015年4月23日
SQL in查询
摘要: --sal为员工工资select * from emp;--查询工资等于1500或3000或5000的用户信息select * from emp where sal in (1500, 3000, 5000);select * from emp where sal = 1500 or sal = 3... 阅读全文
posted @ 2015-04-23 23:23 爱白菜的小昆虫 阅读(815) 评论(0) 推荐(0)
SQL between查询 范围查询
摘要: --sal为员工工资select * from emp;--查询工资在[1500,3000]范围的员工信息select * from emp where sal >= 1500 and sal <= 3000;select * from emp where sal between 1500 and ... 阅读全文
posted @ 2015-04-23 23:08 爱白菜的小昆虫 阅读(4316) 评论(0) 推荐(0)
SQL 2008 数据库只读 修改
摘要: 先对数据库分离 数据库鼠标右键->任务->分离将UsersDB.mdf UsersDB_log.LDF文件 属性->安全->编辑两个文件的都要更改权限然后在附加数据库 数据库鼠标右键->附加 选择文件路径 阅读全文
posted @ 2015-04-23 17:07 爱白菜的小昆虫 阅读(680) 评论(0) 推荐(0)
2015年4月22日
java List 简单使用
摘要: Student类class Student{ String name; String pwd; public Student(){} public Student(String name, String pwd){ this.name = name; this.pwd = pwd; } publ... 阅读全文
posted @ 2015-04-22 17:48 爱白菜的小昆虫 阅读(258) 评论(0) 推荐(0)
鼠标右键菜单 删除
摘要: http://zhidao.baidu.com/question/101592007.html?fr=qrl&index=0&qbl=topic_question_0&word=window%20%CA%F3%B1%EA%D3%D2%BC%FC%B2%CB%B5%A5开始 运行 regedit展开 ... 阅读全文
posted @ 2015-04-22 15:11 爱白菜的小昆虫 阅读(175) 评论(0) 推荐(0)
SQL distinct
摘要: select *from emp;select deptno from emp;select distinct deptno from emp;--过滤deptno 重复的数据distinct 对null也会过滤select distinct comm, deptno from emp;--过滤co... 阅读全文
posted @ 2015-04-22 14:15 爱白菜的小昆虫 阅读(194) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 18 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3