U
U
udi2014-04-21 11:52:57
SQLite
udi, 2014-04-21 11:52:57

How to get column names from SQLite query?

How to get column names from SQLite query?
PRAGMA table_info(select * from table);
does not work, I don’t want to create a temporary table just for the sake of it, there should be a more elegant solution)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skahin, 2014-04-21
@pihel

You can get DDL and then parse it.
SELECT * FROM sqlite_master

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question