Home > database > Can query the same expression, the select, put in the where condition is invalid number
Can query the same expression, the select, put in the where condition is invalid number
Time:09-29
Is really to have died by oracle, odd problems always
The SQL statement as follows, BIRTHDAY date type, yyyy - MM - dd This sentence can be run, not an error:
SELECT TO_NUMBER (SUBSTR (TO_CHAR (BIRTHDAY), 0, 4)) FROM BO_HT_EM_BASIC_INFO
This report is invalid number:
SELECT 1 FROM BO_HT_EM_BASIC_INFO WHERE TO_NUMBER (SUBSTR (TO_CHAR (BIRTHDAY), 0, 4)) & gt; 60
Indebted heart, according to the novice I understand it, you can select out instructions are legitimate, why in the where clause is invalid, for help under the great god help me to answer
CodePudding user response:
you can select out instructions are legitimate,
You are in PLSQL is query? Should be the first screen data are legitimate, you try on all the data;