Im creating some tables, and want to get the headers name no matter if the table is empty now.
Code: Select all
If DBHandle
SQLiteGetTable("Select Name FROM sqlite_master WHERE type='table' ORDER BY Name")
Rows = SQLiteRows()
Dim Tablas.s(Rows)
For Row.l = 1 To Rows
Debug SQLiteData(Row,0)
Tablas(Row) = SQLiteData(Row,0)
Next
For i = 1 To Rows
Debug "Busca columnas en: " + Tablas(i)
TableString.s = "SELECT * FROM " + Tablas(i)
Result = SQLiteGetTable(TableString)
Debug "Numero de columnas: " + Str(SQLiteCols())
For Col = 0 To SQLiteCols()-1
Debug "Columna #" + Str(Col) + " : " + SQLiteData(0, Col)
Next Col
Next i
Only if i previously INSERT some data, otherwise i get o Colums.
Is there a way to get the headers no matter if the table is empty?
One more question:
How can i add COLs later to an existing table?
One more:
Is there a limit to the data that could be stored on each cell in the database? Some limitation like the 64k of a string?
Thanks in advance for any help


