I think the star at the beginning of line 15 is the only problem.
Main Topics
Browse All TopicsDEAR
CAN U PLEASE TELL ME WHAT IS WRONG WITH THIS STATEMENT ?
THANKS
1 prompt ==========================
2 prompt TABLE REPORT
3 prompt ==========================
4 prompt
5 prompt Table Statistics
6 select initial_extent "Initial Bytes",
7 next_extent "Next Bytes",
8 pct_increase "%Increase",
9 to_char(created, 'DD-MON-YY HH24:MI') "Date Created",
10 to_char(last_ddl_time,'DD-
11 from dba_tables, dba_objects
12 where table_name = object_name
13 and table_name = upper('&table_name')
14 and object_type = 'TABLE'
15* and dba_objects.owner = dba_tables.owner
16 /
Enter value for table_name: emp
old 13: and table_name = upper('&table_name')
new 13: and table_name = upper('emp')
prompt ==========================
*
ERROR at line 1:
ORA-00900: invalid SQL statement
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: rbramhanePosted on 2000-09-21 at 07:37:55ID: 4389072
Sorry....if u don't mind...I have an answer.
Basically save the file (say t.sql) and execute the file (eg. @t) in SQL prompt.
Brams