Experience in ORACLE development

Source: Internet
Author: User
ORACLE Date _:Submitdate=datetime.parse (submitdate). ToString ("D-m month-yyyy"); Current time: Sysdate ()To_date (' 2002-01-02 ', ' yyyy-m-dd ') select COUNT (1) from l_perm where CANCEL <> ' Y ' and (sysdate-perm_date) >3

Debugging and experimenting in pl/sql develop, I write to an SQL statement that was previously in SQL Server:

INSERT into ... (............)     VALUES (..., ' 2004-7-20 11:25:36 ', ...) --This statement applies to SQL Server

Made a mistake. I also thought that Oracle's date type separator was like Access is # and I tried again:

INSERT into ... (............)    VALUES (..., #2004-7-20 11:25:36#, ...) --This statement applies to Ms Access

To look up articles on the Internet, many places are written in this way:

INSERT into ... (............) VALUES (..., to_date (' 2004-7-20 11:25:36 ', ' yyyy-mm-dd hh24:mi:ss '), ...)

To_date, To_char,.

Find an example of how to input and output date type data. See the TIMESTAMP keyword, the above SQL statement can be written as:

INSERT into ... (............)   VALUES (..., TIMESTAMP ' 2004-7-20 11:25:36 ', ...) Select the first n records: You can use ROWNUM<10, the first 10 data, format
SELECT * FROM t where rownum<10
between the two
SELECT * FROM (select RowNum r,a.* from tablename a where rownum <=) where R >= 60; Get sequence: select C_order. Nextval as ID from DUAL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.