Re: postgres table query not getting all names

2017-07-17 Thread Dr. Hawkins via use-livecode
On Sun, Jul 16, 2017 at 12:25 PM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > If there is a built in function for getting the schema of the particular > database, I would use that. For instance you can query sqLite master > database for a list of tables using: > That's

Re: postgres table query not getting all names

2017-07-16 Thread Bob Sneidar via use-livecode
If there is a built in function for getting the schema of the particular database, I would use that. For instance you can query sqLite master database for a list of tables using: SELECT * FROM my_db.sqlite_master mySQL can be queried using SHOW TABLES Googling this indicates that for postgres

Re: postgres table query not getting all names

2017-07-14 Thread Mark Wieder via use-livecode
On 07/14/2017 03:48 PM, Dr. Hawkins via use-livecode wrote: Sometime ago, I wrote my own getTableNames() because revDatabaseTableNames() would consistently fail to find them all. Now, it to is filing. It is, in essence, *put* "SELECT table_name FROM information_schema.tables ;" \ & cr into d

postgres table query not getting all names

2017-07-14 Thread Dr. Hawkins via use-livecode
Sometime ago, I wrote my own getTableNames() because revDatabaseTableNames() would consistently fail to find them all. Now, it to is filing. It is, in essence, *put* "SELECT table_name FROM information_schema.tables ;" \ & cr into dcmd *put* revDataFromQuery(,cr,db,dcmd) into tabList *return