tables

Show SQLite tables from the Android command line shell (adb)

Android/SQLite FAQ: How do I show a list of SQLite database tables from the Android command line (adb shell)?

You can show a list of SQLite tables by starting the Android adb shell (command line tool), and then properly invoking the sqlite3 command. Here's an example of how this works, with comments shown before each command:

SQLite - How to list the tables in a SQLite database

SQLite FAQ: How do I list the tables in a SQLite database?

To generate a SQLite tables list, just log into your SQLite database with the sqlite3 command, and then issue the "tables" dot command:

A PHP database metadata example

PHP database FAQ: How do I access the metadata for a database in PHP? That is, for a given database, how do I list the database tables, and fields for those tables?

Solution: I just started this script a little while ago, but even with my limited knowledge of PHP it was very easy to get access to the database metadata, including the database tables and the fields in each table.

Example MySQL database design - A Nagios MySQL database design

MySQL database design FAQ: Can you provide a large, complete, example MySQL database design?

I recently worked on a project where I wrote a web-based user interface that would let "everyday users" maintain their own Nagios configuration data. After logging in to the web interface, users could modify the Nagios configuration as desired, for instance, when they added new equipment to their network.

MySQL example database - The Coffee Break Database from Sun's JDBC tutorial

MySQL database FAQ: Can you share an example MySQL database schema (i.e., a MySQL database create script).

For what I do I often need a sample database. For my current writing I decided to use the "coffeebreak" database defined in Sun's JDBC tutorial. If it saves you any time in your work, here are the commands. I've only tested these with MySQL, but they should work with most other databases.

Before worrying about the schema, here are three steps that you'll want to do first:

Postgresql - How to list all tables in a Postgresql database

"Postgres show tables" FAQ: How do I list all the tables in my current Postgresql database?

Once you're logged into a Postgresql database using the psql client, issue this command at the psql prompt to show all the tables in your Postgres database:

\dt

This will list all of the tables in the current database.

 

MySQL table schema - how to show the schema of a MySQL table

MySQL table/schema FAQ: How do I show a database table schema in a MySQL database?

Short answer: To show the schema for a MySQL database table, use the MySQL "desc" command. You issue this command from the MySQL client command line prompt, like this:

MySQL show tables - How do I list the tables in a MySQL database?

MySQL "show tables" FAQ: How do I show/list the tables in a MySQL database?

To list the tables in a MySQL database, first log into your database using the MySQL client, issue the use command to connect to your desired database, and then use the MySQL show tables command, like this:

Syndicate content