Search two tables with SQLite - Forum

Forum Navigation
You need to log in to create posts and topics.

Search two tables with SQLite

Can you search two tables within an SQlite database, if the layout is the same i.e.

one table is called AM and the second is called NZ. both have a field named Place.

@m-burdess you can use any SQL Query including INNER JOIN:

https://www.sqlitetutorial.net/sqlite-inner-join/

Regards.

@luishp

Is it possible to get an example, please.

@m-burdess right now I have no time to prepare a complete sample sorry, but I'm sure some users already have done this before and perhaps they would like to help here. Anyway, if you get stuck, please prepare a sample I can modify so I don't need to start from zero and will try to help you.

Best regards.

@luishp thank you for the help, the web site you sent me too is good. I can not see the code in context with where its needed within the Visualneo.

Within the config.sys file, do I add it to the search function or "Loadtable", this is the area missing for me.

 

Hi @m-burdess,

neoPhp works this way:

  1. You use neoPhpExecSql to execute a SQL stored in your config.php file.
  2. The query results are sent to a subroutine (ie: parseData)
  3. You process the data in the subroutine.

That's all. So you just need to define to appropiated SQL queries into your config.php file and to take a look at the "data" retrieved by them into your subroutine. I allways recommend using Consolelog command to see what's coming from the server.

Best regards.