A
A
Alex Pts2012-10-06 15:53:35
SQL
Alex Pts, 2012-10-06 15:53:35

How to get table column names in SQLite

In MySQL, I used SHOW COLUMNS to get detailed information about the columns of a table.

I need to get a list of column names in SQLite. SHOW COLUMNS is not a command in SQLite unfortunately. How can this be done in SQLite?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Idleco, 2012-10-06
@AlexPTS

pragma table_info(table);

A
Alex Pts, 2012-10-06
@AlexPTS

Everything is fine, what you need) Thank you!
Russian documentation on SQLite or a book in Russian (a reference book is better) can you tell me more?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question