Something like this?
SQL:
SELECT
name, type
FROM
sqlite_master
WHERE
type in ('table', 'view')
AND
name not like 'sqlite?_%' escape '?'
hello MicroDrie
Thanks for the reply
I have to take table schema with RDC2 Remote Database Connector (RDC2)
I put this command in the config.properties file
sql.select_schema = SELECT sql \
FROM sqlite_schema \
WHERE name =?
[CODE lang="b4x" title="Codice B4A"]Dim req As DBRequestManagerRS = CreateRequest
Dim cmd As DBCommand = CreateCommand("select_schema", Array(nameTable))
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
If j.Success Then
req.HandleJobAsync(j, "req")
Wait For (req) req_Result(res As DBResult)
Dim r As Int = 0
Dim schema As StringBuilder
schema.Initialize
For Each row() As Object In res.Rows
schema.Append(row(r)): r= r +1
Next
j.Release
Else
Starter.SaveLog($"${nameModule}.Select_Schema job.error: ${j.ErrorMessage}"$)
End If[/CODE]
error
(SQLiteException) org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: sqlite_schema)