Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Wild-card charcters in SQL statement

536473Dec 18 2006 — edited Dec 18 2006
Is there any way where I can display only table starts with 'T' charaters along with maximum three digits. i.e. table names T12, T121, T454,T5 etc.

I tried using wild card charcters 'T???'. But, it does not display any rows.

SELECT SUBSTR(F.FILE_NAME,1,35),SUBSTR(F.TABLESPACE_NAME,1,15), SUBSTR(D.OBJECT_NAME,1,15),
SUBSTR(OBJECT_TYPE,1,10)
FROM DBA_DATA_FILES F,DBA_OBJECTS D
WHERE D.OBJECT_NAME LIKE 'T%'
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2007
Added on Dec 18 2006
12 comments
700 views