摘要: 1.使用like查询(模糊查询) % 表示0到多个字符 _ 表示1个任意字符例:如何显示第三个字符为大写O的所有员工姓名和工资select ename,sal from emp where ename like'_O%';2.where条件中,使用in(以下两个语句等价)(1)select * from emp where id=123 or id=456 or id=789(2)select * from emp where id in(123,456,789)3.使用逻辑运算符号例:查询工资高于500或是岗位为MANAGER的雇员,同时还要满足他们的姓名首写字母为大写的Js 阅读全文
posted @ 2012-06-13 22:26 只会HelloWorld 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 我们希望删除用户,同时保留该用户的数据对象,怎么处理(1)锁定该用户alter user scott account lock;(2)这时scott用户已经不能登录到数据库,但是system用户依然可以使用它的数据(3)解锁命令alter user scott acount unlock; 阅读全文
posted @ 2012-06-13 20:41 只会HelloWorld 阅读(93) 评论(0) 推荐(0) 编辑