LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2009, 02:39 PM   #1
novakane
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
How do you explain table in SQLite3?


Hi,

I'm a complete noob with SQLite3 and I'm trying to figure out how to do the mysql equivalent of "explain table".

I've created a database and a table successfully. Using .dump I can see that the table is there and correct. I can add data and SELECT * from the table without problem. In other words, all is working well.

But I'd like to get a table explanation as a sanity check. Any help would be greatly appreciated.

I'm sitting at the sqlite> prompt in the terminal, though bonus points will be awarded for being able to do it in PERL too.

Thanks,
-Kane
 
Old 03-10-2009, 11:03 PM   #2
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
.schema maybe? try typing .help at the sqlite command line for more 'dot' commands.
 
Old 03-11-2009, 02:11 PM   #3
novakane
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
.schema is exactly what I was looking for. Thanks very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
access paging table memory using another page table via MMU? valpa Linux - Kernel 8 08-26-2008 04:26 PM
php and sqlite3 can select but not insert file is set rw gruessle Programming 2 01-26-2007 06:13 AM
Sqlite3-3.2.1 execution error Aju Linux - Software 2 10-20-2005 10:17 AM
MySQL non-realtime table-by-table mirroring Passive Linux - Software 1 01-20-2004 01:11 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration