On Thu, Aug 30, 2018 at 1:44 PM, Ruiqiang Chen <chenrq2005@gmail.com> wrote:Does anyone have experience of searching a value in a variable/field in all tables in a schema? SELECT 'Tbl1'::text AS loc, fldFROM schema.tbl1WHERE fld = 'value'[UNION ALLSELECT 'Tbl2'::text AS loc, fldFROM schema.tbl2WHERE fld = 'value' ...]David J.
Does anyone have experience of searching a value in a variable/field in all tables in a schema?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных