javascript - is - select * from empty table possible? -


On my website I'm trying to select 2 tables - from which tableB can be empty, so this is someone Also, the result is not returning when the tableB is empty I hope I understand it properly. Any suggestions?

  curatio.webdb.getAllTodoItems = function (renderFunc) {var db = curatio.webdb.db; Db.transaction (function (tx) {tx.executeSql ("Select * to Table A, Table B", [], RenderFunk, Quiteo.wbb.bt.;}); }  

Basically the example in the table is the name and aliases column and the example in TableB is the address of the address. But sometimes there is no address, and then I can not find anything to display.

I basically need to ignore the tablebars if it is empty.

Although your query does not point to it, I still think that you might possibly Looking for, because I'm assuming that you want to add data from two tables with the same value, one column from table B (which is known as the foreign key).

This query selects the values ​​of the first table, even if it contains no matching data in the table:

  Again, it assumes that you mean That means that you mean, `` `` `` `` `` `` `` `` `` `` `` `` `for example:  
  Person (Table A): - ID - Name Phone Number (Table B): - id - person_id // This is a foreign key Table A which is the "link" data - PhoneMan  

If you regularly use JOIN (also known as INNER JOIN < / Code>) Then only the rows are returned for the data that matches between the two rows.

What was your original query, however, (both ways) while editing your question, I hardly think that it was really after you.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -