0

I'm new to SQLite3 and would like to verify that the table and columns I have created were actually created. Is there a shell command that will display the table and columns? I tried Googling it but all I get is information on creating views. The .help doesn't appear to have anything that would help me. I would appreciate any information on this matter. Thank you in advance.

1

2 Answers 2

2
pragma table_info(YourTable);

lists all the columns of your table

To see the create table statement:

select * from sqlite_master where type = 'table' and tbl_name = 'YourTable';
Sign up to request clarification or add additional context in comments.

Comments

0

From SQLite shell:

.schema <TABLE_NAME>

will show schema of TABLE_NAME. Remember not to place ';' after it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.