This is mnoGoSearch's cache of https://lists.gambas-basic.org/pipermail/user/2020-May/069175.html. It is a snapshot of the page as it appeared during last crawling. The current page could have changed in the meantime.

Last modified: Mon, 04 May 2020, 07:35:01 CEST    Size: 2975
[Gambas-user] DataSource.Table = SELECT...

[Gambas-user] DataSource.Table = SELECT...

T Lee Davidson t.lee.davidson at gmail.com
Fri May 1 19:19:36 CEST 2020


On 4/30/20 5:36 PM, Gianluigi wrote:
> Hi,
> Can you pass a SELECT Aliases query to the DataSource.Table of gb.db.form, as SELECT column_name AS alias_name FROM table_name; 
> or pass multiple tables with Inner Join ?
> Because I can't.
> 
> Regards
> Gianluigi

On a Wordpress database, I was able to use the following successfully:
"SELECT option_id, option_name AS my_name FROM wp_options order by option_id asc"

I did not try a JOIN.


-- 
Lee


More information about the User mailing list