Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Is there an, EXEC SQL SELECT column size limit? Odd prob....

$
0
0
Problem turns out to be that a column name is being auto generated from the SQL statement and it's the column name that's too long. I don't actually need a column name but adding one solves the problem! e.g. exec sql select blah1, concat('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' as MY_COLUMN_NAME, blah3 into :blah1, :my-host-field, :blah3 from my-table limit 1 end-exec.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>