How to find all table name in my database ?
Posted: 17.09.2008, 20:16
Hello,
In start of my app i want find all table name in my database, i use this code but i can't use the result :
with this code i have a error sql_query "list index out of bounce"
can anyone help me ?
Ubuntu 8.04 + lazarus 0.9.24 + FPC 2.2.0 + zeoslib 6.6.3 + sqlite3 3.6.2
Thanks
David
In start of my app i want find all table name in my database, i use this code but i can't use the result :
Code: Select all
sql_query.SQL.Clear;
sql_query.sql.Add('SELECT name, sql FROM sqlite_master WHERE type=''table'' ORDER BY name;');
sql_query.ExecSQL;
ShowMessage('Name = ' + sql_query.Fields.Fields[0].Text);
can anyone help me ?
Ubuntu 8.04 + lazarus 0.9.24 + FPC 2.2.0 + zeoslib 6.6.3 + sqlite3 3.6.2
Thanks
David