Home > database > SQL share (AND the PRIOR DBMS_RANDOM. The VALUE IS NOT NULL) IS redundant
SQL share (AND the PRIOR DBMS_RANDOM. The VALUE IS NOT NULL) IS redundant
Time:09-25
SQL share (AND the PRIOR DBMS_RANDOM. The VALUE IS NOT NULL) IS redundant, excluding influential?
SELECT 'TEST2' TABLE_NAME, REGEXP_SUBSTR (COL1, COL2, '[^,] +' 1, LEVEL) COLUMN_NAME FROM DUAL CONNECT BY LEVEL
SELECT 'TEST2' TABLE_NAME, REGEXP_SUBSTR (COL1, COL2, '[^,] +' 1, LEVEL) COLUMN_NAME FROM DUAL CONNECT BY LEVEL CodePudding user response: Good question, encouraging;
If only for a line of data, to be apart, so this condition can be removed; Just try to two (or more rows of data) :
Select col1, col2 from dual Union all Select 'col3 col4,' the from dual
CodePudding user response:
To learn...
CodePudding user response:
Try not to know.
CodePudding user response:
Learning
CodePudding user response:
Learning,,,,,,,,,
CodePudding user response:
Learning, pass by,
CodePudding user response:
As with TEST2 (select 'COL1, COL2 as col_name The from dual Union all Select 'col3 col4,' The from dual)
SELECT 'TEST2' TABLE_NAME, REGEXP_SUBSTR (TEST2 col_name, '[^,] +' 1, LEVEL) COLUMN_NAME The FROM DUAL CONNECT BY LEVEL & lt;=LENGTH (REGEXP_REPLACE (TEST2 col_name, '[^,] +')) + 1 AND the PRIOR sysdate IS NOT NULL;
An error Test2. Invalid col_name definition,,, where is wrong