[odb-users] How to qeury one column (or some columns) in a table?

Per Edin per.edin at sequence-point.se
Mon Sep 2 04:46:59 EDT 2019


Hi!

I'm pretty sure Table Views can be used to accomplish what you want,
see section 10.3 Table Views in the ODB documentation.

https://codesynthesis.com/products/odb/doc/manual.xhtml#10.3

// Per

On Mon, Sep 2, 2019 at 10:07 AM saigut <saigut at qq.com> wrote:
>
> Hi all,
>
>
> I am using odb 2.4.0, I want to query one column of a table, but don't know how to do that.
>
>
> Say I have such table:
> user_info:
> int user_id, vchar user_name, int user_age
>
>
> I want do a query like "SELECT user_id FROM user_info", but I cannot find any method to do this with odb. And after I searched on google and the odb documentation I still don't know how to do.
>
>
> Can any one tell me how to qeury one column (or some columns) in a table with odb?
>
>
> Thanks.
>
>
> ------------------
> Tony Saigut
> saigut at qq.com



More information about the odb-users mailing list