Re: [Cppcms-users] cppdb::result::get problem
Brought to you by:
artyom-beilis
From: <ke...@co...> - 2012-04-30 06:42:17
|
At first. Never use select * http://stackoverflow.com/questions/1433971/select-from-table-or-select-id-field1-field2-field3-from-table-best-practi If you solve that problem then you can access them via integer index. The other one. Good question. Maybe artyom can say something about it. -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. ele...@ex... schrieb: Hello, Supposing I have a SELECT * FROM sometable st LEFT OUTER JOIN othertable ot ON (st.ot_id=ot.id) ... Then looping through the results using result::next() Why can't I access the results this way? r.get<string>("st.columnA") ? Imagine you want to get all the columns from both tables and some have duplicate column names such as - id or name Petr _____________________________________________ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _____________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |