oh! n_i was right. I have missed to identify the tabschema. Thanks!
I have one more question, is the typename a string? because i encountered an assertion error after I executed the statement.
Here is my code:
Code:
*_pSession << "SELECT typename FROM syscat.columns WHERE tabschema='SAMPLE' and tabname='MYTABLE' and colname='MYCOLUMN'", into(name), now;
where 'name' is a string variable.
This variable 'name' is supposed to hold the result after you execute the statement.