Function: sql-list-table

sql-list-table is an interactive and byte-compiled function defined in sql.el.gz.

Signature

(sql-list-table NAME &optional ENHANCED)

Documentation

List the details of a database table named NAME.

Displays the columns in the relation. With optional prefix argument ENHANCED, displays additional details about each column.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
(defun sql-list-table (name &optional enhanced)
  "List the details of a database table named NAME.
Displays the columns in the relation.  With optional prefix argument
ENHANCED, displays additional details about each column."
  (interactive
   (list (sql-read-table-name "Table name: ")
         current-prefix-arg))
  (let ((sqlbuf (sql-find-sqli-buffer)))
    (unless sqlbuf
      (user-error "No SQL interactive buffer found"))
    (unless name
      (user-error "No table name specified"))
    (sql-execute-feature sqlbuf (format "*List %s*" name)
                         :list-table enhanced name)))