tlavalle Posted October 19, 2006 Share Posted October 19, 2006 I need some help from someone who is knowledgable with the as400. I have my driver and url correct and working. the problem i am coming to is that the field names have @ in front of them, Also when i compile i either get delete tokens or a bunch of errors. How can I use the the field names with the @ in front or if not what is my best option. thank you in advancedTony Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted October 19, 2006 Share Posted October 19, 2006 select @field1 as field1 from mycatalog.mytable Giulio Link to comment Share on other sites More sharing options...
tlavalle Posted October 19, 2006 Author Share Posted October 19, 2006 DOH!! I forgot you can do that. It seems to work except now i get SQL Problems:[sql0206]Column hdia1 not in specified tables here is my sql statementselect h.@henc# as henc, h.@hdia1 as hdia1, h.@hdia2 as hdia2from pfcfilso.@enchdr hwhere hdia1 = '27447'or hdia2 = '27447' Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now