`

Extract use in oralce

 
阅读更多

racle中Extract函数的用法

SELECT EXTRACT(YEAR FROM SYSDATE) FROM DUAL; return Current Year
SELECT EXTRACT(MONTH FROM SYSDATE) FROM DUAL; return Current Month
SELECT EXTRACT(DAY FROM SYSDATE) FROM DUAL; return Current Day
SELECT EXTRACT(HOUR FROM SYSDATE) FROM DUAL;Error
       Correct:SELECT EXTRACT(HOUR FROM TIMESTAMP '2005-10-10 10:10:10') FROM DUAL;

SELECT EXTRACT(MINUTE FROM SYSDATE) FROM DUAL;Error
       Correct:SELECT EXTRACT(MINUTE FROM TIMESTAMP '2005-10-10 10:10:10') FROM DUAL

分享到:
评论

相关推荐

    OGG-1224 Address already in use oracle 12c

    Port scans cause extract / replicat abend with OGG-1224 Address already in use Linux x84-64: Oracle 11g: OGG 12.3.0.1.4 > p28511684_123014_Linux-x86-64 Linux x84-64: Oracle 12g: OGG 12.3.0.1.4 > p...

    OGG-1224 Address already in use

    此补丁程序所解决的 Bug Port scans cause extract / replicat abend with OGG-1224 Address already in use

    Expert Oracle GoldenGate.pdf

    * Explains all aspects of using GoldenGate for replication * Covers homogeneous, heterogeneous, and bidirectional replication * Shows the use of GoldenGate for data migration and extract, transform, ...

    Oracle 11gR2 2 Day Replication and Integration Guide

    This book shows us how to use Oracle 11gR2 tools to extract,transfer and load data, how to replication data and how to integrate the data together from the different sources.

    Beginning T-SQL 2012, 2nd Edition.pdf

    language that is most often used to extract or modify data stored in a SQL Server database, regardless of which application or tool you use. SQL Server 2012 T-SQL is based on standards created by the ...

    SQL Assistant v5.0

    Removed certain limitations on the use of functionally similar macros in the same snippet code. For example, $COLUMNS$ and $COLUMNS_KEYS$ macros can be now used in the same code snippet. Improved ...

    端口查看工具

    displayed in the main window, it won't be displayed in the tray balloon.) * Version 1.87: o Improved the 'User Name' column. If you run CurrPorts as administrator, this column will display the ...

    Data Analysis Using SQL and Excel(Wiley,2ed,2015)

    Examples include SQL and Excel code, and the appendix shows how non-standard constructs are implemented in other major databases, including Oracle and IBM DB2/UDB. The companion website includes ...

    Data Analysis Using SQL and Excel [2nd Edition, 2016]

    Examples include SQL and Excel code, and the appendix shows how non–standard constructs are implemented in other major databases, including Oracle and IBM DB2/UDB. The companion website includes ...

    11g安装guide.doc

    11g傻瓜安装教程, ...tracker-extract-files.0 VMwareDnD vmware-root yum.log [root@localhost tmp]# cd VMwareDnD [root@localhost VMwareDnD]# ls q2WKMF [root@localhost VMwareDnD]# cd

Global site tag (gtag.js) - Google Analytics