Oracle's ora-00972:identifier is too long

Source: Internet
Author: User

First, preface

Today, in the program's log, this error occurred, searching the web to find that Oracle's object name is up to 30 characters, not more than 30, and my error SQL is:

"Select*fromwhere<= to_date ('2016-05-28 09:51:58  'yyyy-mm-dd HH24:mi:ss') "
Second, the reasons for analysis

Carefully read this SQL even if it did not find that the schema object name length is greater than 30, and finally can only debug the program, found that because the SQL statement is read from the configuration file, and read out not to eliminate the operation of both sides of the quotation marks, resulting in this error. So record it.

The correct statement should be:

Select *  from where <= to_date ('2016-05-28 09:51:58'yyyy-mm-dd HH24:mi:ss ')

Oracle's ora-00972:identifier is too long

Related Article

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.