Next Previous Up Top Contents Index

16 The SQL Package

attribute-type

Function

Summary

Returns the type of a table's attribute.
Package

sql

Signature

attribute-type attribute table &key database => datatype

Arguments

table

A table.

attribute

An attribute from table.

database

A database.

Values

datatype

A type.

Description

The functionattribute-type returns the type of the attribute specified by attribute in the table given by table. The database, in which table is found, has a default value of*default-database*.
Example

This example shows how to query the type of the name attribute of the employee table.
(attribute-type [ename] [emp]) => ("CHAR")

See also

list-attributes

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker