SELECT TGTID,PHONENUM,REGISTERDATE ,to_date(REGISTERDATE,'YYYY-MM-DD HH24:MI:SS') AS T FROM WTRESSENWEB.T_AXMALL_COMMONCLIENT WHERE TGTID = '2087' AND to_date(REGISTERDATE,'YYYY-MM-DD HH24:MI:SS') > to_date('2014-07-09','yyyy-mm-dd'); 对于to_char() to_
一.运算符算术运算符:+ - * / 可以在select 语句中使用连接运算符:|| select deptno|| dname from dept; 比较运算符:> >= = != < <= like between is null in逻辑运算符:not and or 集合运算符: 集合操作不适用于LOB,Varray和潜逃表列 Union.intersect.minus操作符不适用于long列 如果选择列表中包含有表达式或者函数,那么必须为表达式或函数定义列别名 1.Uino
commands : show sys connect sys as sysdba or connect system as sysdba logout or disc clear screen or cle screen (utlsample.sql —> unlock scott tables.sql —> all tables data.sql —> add data into tables) connect scott/tiger start C:\utlsample.sq
oracle教程:PLSQL常用方法汇总 在SQLPLUS下,实现中-英字符集转换alter session set nls_language='AMERICAN';alter session set nls_language='SIMPLIFIED CHINESE'; 主要知识点:一.有关表的操作1)建表 create table test as select * from dept; --从已知表复制数据和结构create table test as select * from dept w
--日常使用的sql语句和oracle语句,有些相对使用的频率比较高,收藏起来还是比较值得的 -- 绝对值 SQL:) value Oracle:) value from dual -- 2.取整(大) SQL:select ceiling(-1.001) value Oracle:select ceil(-1.001) value from dual -- 3.取整(小) SQL:select floor(-1.001) value Oracle:select floor(-1.001) va