SQLColumn
This feature is not supported on the Wolfram Cloud.

SQLColumn[]
represents a column in an SQL table.

DetailsDetails

  • To use SQLColumn, you first need to load DatabaseLink using Needs["DatabaseLink`"].
  • The following options can be given:
  • "DataTypeName"Nonetype of the entry
    "DataLength"Nonemaximum length for variable length data
    "Default"Nonedefault value for column
    "Nullable"Falsewhether the entry can be null
    "PrimaryKey"Falseindicates a primary key column

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the package, as described in Using the Example Databases.

Open a connection:

In[2]:=
Click for copyable input

List the columns in a table:

In[3]:=
Click for copyable input
Out[3]=

Select data matching a condition:

In[4]:=
Click for copyable input
Out[4]=

Use a prepared statement:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input

If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the package, as described in Using the Example Databases.