![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
文章平均质量分 75
大萌萌德
这个作者很懒,什么都没留下…
展开
-
SQL 操作符
1,LIKE:检查列值是否匹配指定的模式;模式字符串中可以使用普通字符以及两个通配符:_和%。 _ 代表任意单个字符; % 代表任意长度(长度可以为0)的字符串因为_和%在模式字符串中具有特殊含义,因此如果要匹配这两个字符,可使用escape选项来标识这些字符。select * from promotions t where name like ‘%\%%’ escape ‘\ ’转载 2015-05-29 23:28:51 · 499 阅读 · 0 评论 -
SQL 排序
1,使用ORDER BY子句:可以按一个或多个属性列排序升序:ASC;降序:DESC;缺省值为升序2,当排序列含空值时ASC:排序列为空值的元组最后显示DESC:排序列为空值的元组最先显示 eg: SQL> select * from customers order by dob;CUSTOMER_ID FIRST_NAME LAST_NAME DOB PHONE转载 2015-05-29 23:32:41 · 470 阅读 · 0 评论 -
SQL多条件查询
1,用逻辑运算符AND和 OR来联结多个查询条件eg:SQL> select * from customers where dob > to_date(‘1970-01-01’, ‘yyyy-mm-dd’) and first_name like ‘D_’;CUSTOMER_ID FIRST_NAME LAST_NAME DOB PHONE转载 2015-05-29 23:31:00 · 1398 阅读 · 0 评论 -
select 查询语句的小尾巴~~~啦啦啦啦啦
从表中检索信息使用SELECT查询语句。 1,对单表执行select语句 select 列名[,列名…] from 表名2,如果选择输出一个表中的所有列,可使用*号: select * from 表名3,如果进行有条件检索,则使用where子句过滤行 select 列名[,列名…] from 表名 where 过滤条件eg: select customer_id, first_name转载 2015-05-29 23:29:23 · 456 阅读 · 0 评论 -
oracle 数据库基本命令
alter user scott account unlock; alter user scott account locl;passwordshow user select sysdate from dual 查看系统日期 select * from v$nls_parameters 查看系统参数 set linesize 300 设置行长度 select 1+1 from dual O转载 2015-05-29 23:27:05 · 506 阅读 · 0 评论 -
Spring 学习日记 (四) Spring 整合Mybaits 和 struts2 框架的配置文件
其实也是挺无奈的 这东西永远这一棒子那一锤子的 太不系统了 哎 没办法 跟着项目走吧首先准备的JAR包需要配置的几个配置文件 配置springapplicationContext.xml 配置mybaitsmybatis-config.xml配置Struts2st原创 2015-11-26 14:04:51 · 815 阅读 · 0 评论