dbcolumns()

Description: returns the list of column information related to f

Syntax: dbcolumns(f)

Parameters:

The return type is a list of records with the following fields:
Code Example
procedure main()
  f:=open("mysql","O","test","federico","") # open table

  colinfo:=dbcolumns(f) # get columns information

  write("column info\n")

  every i:=(1 to *colinfo) do { # for each column
    writes("col #",i,": ")

    # write column's information
    every j:=(1 to *colinfo[i]) do
      writes("[",colinfo[i][j],"]")

    write()
  }
  write()

  close(f) # close table and connection to the database
end