When there is a table that is part of a database (DBSTAFF) I can browse it and it automatically opens the database and shows the long field names as headers. When I do a "select * from DBSTAFF" I get a cursor with the long field names as headers. My question is "What syntax do I use specify specific field names if I don't want them all?
On Wed, Apr 15, 2015 at 10:48 AM, Stephen Russell <[email protected]> wrote: > On Wed, Apr 15, 2015 at 9:31 AM, Joe Yoder <[email protected]> wrote: > > > The help so far has given me the tools to figure out how to create a > > translation table but I still don't know what syntax to use when I want > to > > write an SQL Select specifying the fields I want using the long name > form. > > Examples: "Select Mail Label from DBSTAFF " complains that Mail cant be > > found, "Select 'Mail Label' from DBSTAFF " gives me "Mail Label" rather > > than the field contents, and "Select ('Mail Label') from DBSTAFF " also > > gives me "Mail Label." > > > > I expect it is just a case of learning a syntax I haven't tried but > perhaps > > one must use the 10 character form of the filed name. If some one can > > enlighten me it will be greatly appreciated! > > ----------- > > > > I do not think that DBGETPROP(table.fieldname, "FIELD", "Caption") is an > SQL function only one via a DBC being open. > > You could create a cursor with the details but that sounds stupid not being > able to get it via SQL. > > > -- > Stephen Russell > Sr. Analyst > Ring Container Technology > Oakland TN > > 901.246-0159 cell > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CABQeDnW--UThfQEh4yhmURHMF=vps6ottq1fane1ttgaj_9...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

