May 2019
Intermediate to advanced
600 pages
20h 46m
English
Our task is to run a SQL statement using this form, with X as the table name, against each of our three test tables:
ALTER TABLE X ADD COLUMN last_update_timestamp TIMESTAMP WITH TIME ZONE;
The steps are as follows:
postgres=# SELECT relname FROM pg_class c JOIN pg_namespace n ON c.relnamespace = n.oid WHERE n.nspname = 'test' AND c.relkind = 'r';
relname --------- a b c (3 rows)
Read now
Unlock full access