Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > odd CREATE VIEW problem.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-03, 13:45
my_lou my_lou is offline
Registered User
 
Join Date: Oct 2003
Posts: 57
odd CREATE VIEW problem.

that's odd. here is what happens. when i do this:

SQL> CREATE VIEW
2 "MY_ADDSTUDENTTARGET" ("DEMOGRAPHICID","ETHNICITYID","REFERRERID","DEMOG RAPHICSTUDENTID","ACADE
MICYEARID","DOB","EMAIL","FNAME","HOMEADDRESS1","H OMEADDRESS2","HOMECITY","HOMECOUNTRY")
3 AS
4 SELECT DEMOGRAPHIC.DEMOGRAPHICID, DEMOGRAPHIC.ETHNICITYID, DEMOGRAPHIC.REFERRERID, DEMOGRAPHIC.
STUDENTID, STUDENT.ACADEMICYEARID, STUDENT.DOB, STUDENT.EMAIL, STUDENT.FNAME, STUDENT.HOMEADDRESS1,S
TUDENT.HOMEADDRESS2, STUDENT.HOMECITY, STUDENT.HOMECOUNTRY
5 FROM DEMOGRAPHIC, STUDENT;

it works fine without any problems. However, if i add just one more column, like this:

SQL> CREATE VIEW"MY_ADDSTUDENTTARGET" ("DEMOGRAPHICID","ETHNICITYID","REFERRERID","DEMOG RAPHICSTUDEN
TID","ACADEMICYEARID","DOB","EMAIL","FNAME","HOMEA DDRESS1","HOMEADDRESS2","HOMECITY","HOMECOUNTRY","
HOMEPOST")
2 AS
3 SELECT DEMOGRAPHIC.DEMOGRAPHICID, DEMOGRAPHIC.ETHNICITYID, DEMOGRAPHIC.REFERRERID, DEMOGRAPHIC.
STUDENTID, STUDENT.ACADEMICYEARID, STUDENT.DOB, STUDENT.EMAIL, STUDENT.FNAME, STUDENT.HOMEADDRESS1,S
TUDENT.HOMEADDRESS2, STUDENT.HOMECITY, STUDENT.HOMECOUNTRY, STUDENT.HOMEPOST
4 FROM DEMOGRAPHIC, STUDENT;

i get this error:

SELECT DEMOGRAPHIC.DEMOGRAPHICID, DEMOGRAPHIC.ETHNICITYID, DEMOGRAPHIC.REFERRERID, DEMOGRAPHIC.STUDE

ERROR at line 4:
ORA-00904: invalid column name

The field HOMEPOST is a valid field in the table STUDENT. When i do a DESCRIBE on the table, i can clearly see the field HOMEPOST there and it has valid data in it. Is there some sort of a restriction on the number of columns you could have per view (i thought it was a 1000) or the length of the CREATE VIEW string? Any ideas?

thanks.
Reply With Quote
  #2 (permalink)  
Old 12-08-03, 15:02
my_lou my_lou is offline
Registered User
 
Join Date: Oct 2003
Posts: 57
never mind, i figured it out. apparently, there is a command line string limit in pl/sql. you learn something new every day i guess.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On