Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / August 2005

Tip: Looking for answers? Try searching our database.

error of dynamic SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lizayica@yahoo.ca - 29 Aug 2005 18:04 GMT
I created a procedure with dynamic SQL. Building is successful.But when
I run it, it shows me the following error:

A database manager error occurred.[IBM][CLI Driver][DB2/NT] SQL0104N
An unexpected token "pd.proposal_id  , pd.item_id , psd.year_id" was
found following "(            select".  Expected tokens may include:
"<space>".  SQLSTATE=42601

In procedure, the part is
                    '   select      pd.proposal_id  '||
                            '  ,pd.item_id    '||
                            '  ,y.year_id    '||

What is wrong? There do have spaces following 'select'.

Thanks for help!
Serge Rielau - 29 Aug 2005 18:55 GMT
> I created a procedure with dynamic SQL. Building is successful.But when
> I run it, it shows me the following error:
[quoted text clipped - 10 lines]
>
> What is wrong? There do have spaces following 'select'.
What's that '(' before the select? Must be coming from somewhere...

Signature

Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.