I am new to SQL so please go easy! I have created a very simple DB in B4A using the Tutorial here -
and then Create a table...
My app has an option to email the db to me and I wanted to write a vb.net app that reads the DB. However what I learned was that the tutorial in android avoids a integer PRIMARY KEY whereas in vb.net an id PRIMARY KEY seems necessary. I obtained the SQLlite library on vb from Finisar.
Using SQL browser there is an 'id' in vb.net but in android there is not one. So when trying to read the android db via vb.net is says there is an unsupported format.
I suppose therefore I need a similar primary key column one in my Android DB
Can someone explain this to me please
B4X:
SQL1.Initialize(File.DirDefaultExternal, "test1.db", True)
and then Create a table...
B4X:
SQL1.ExecNonQuery("CREATE TABLE table1 (col1 TEXT , col2 INTEGER, col3 INTEGER)")
My app has an option to email the db to me and I wanted to write a vb.net app that reads the DB. However what I learned was that the tutorial in android avoids a integer PRIMARY KEY whereas in vb.net an id PRIMARY KEY seems necessary. I obtained the SQLlite library on vb from Finisar.
Using SQL browser there is an 'id' in vb.net but in android there is not one. So when trying to read the android db via vb.net is says there is an unsupported format.
I suppose therefore I need a similar primary key column one in my Android DB
Can someone explain this to me please