V
V
Viktoria Smirnova2019-02-15 11:09:02
PostgreSQL
Viktoria Smirnova, 2019-02-15 11:09:02

SELECT * FROM where table like 'i'?

Guys, help with SQL query:
you need to select everything from the table LIKE '%%'
found the table like this:

SELECT * FROM INFORMATION_SCHEMA.TABLES 
WHERE TABLE_NAME LIKE '%i%'

I try again like this, but still only the name of the table gives
WITH NewScores AS (
    SELECT table_name FROM INFORMATION_SCHEMA.TABLES
    WHERE TABLE_NAME LIKE 'irina'
)
SELECT * from NewScores;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2019-02-15
@Vika7

Compose a query manually, automatically go through all the fields with one LIKE% i% operator and also select a table - it will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question