---
name: "mdb-array"
section: "1"
platform: "linux"
package: "mdbtools"
version: "1.0.1-0.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mdb-array"
---

# mdb-array(1)

Export data in an MDB database table to a C array.

## NAME

**mdb-array** - Export data in an MDB database table to a C array.

## SYNOPSIS

```
mdb-array database table
```

## DESCRIPTION

**mdb-array is a utility program distributed with MDB Tools.**

**mdb-array prints a C source code file to stdout, containing an array** **representing the data of the specified** *table***.**

## ENVIRONMENT

- **MDB\_JET3\_CHARSET**

  **Defines the charset of the input JET3 (access 97) file. Default is CP1252. See [iconv(1)](/iconv/1.md).**

- **MDBICONV**

  **Defines the output charset. Default is UTF-8. mdbtools must have been compiled with iconv.**

- **MDBOPTS**

  **Colon-separated list of options:**

  - •

    **debug\_like**

  - •

    **debug\_write**

  - •

    **debug\_usage**

  - •

    **debug\_ole**

  - •

    **debug\_row**

  - •

    **debug\_props**

  - •

    **debug\_all is a shortcut for all debug\_\* options**

  - •

    **no\_memo (deprecated; has no effect)**

  - •

    **use\_index (experimental; requires libmswstr)**

## FUTURE DIRECTIONS

**mdb-array is deprecated. Soon, it will no longer be distributed.**

**It is the feeling of developers that it is not used, as C code generation** **is now usually replaced by more generic approaches, including libmdb calls** **and odbc.**

**However, should you find this tool useful, drop us a line at** **https://github.com/mdbtools/mdbtools/issues/197** **and we'll consider maintaining it.**

## SEE ALSO

**[mdb-count(1)](/mdb-count/1.md) [mdb-export(1)](/mdb-export/1.md) [mdb-header(1)](/mdb-header/1.md) [mdb-hexdump(1)](/mdb-hexdump/1.md)** **[mdb-import(1)](/mdb-import/1.md) [mdb-json(1)](/mdb-json/1.md) [mdb-parsecsv(1)](/mdb-parsecsv/1.md) [mdb-prop(1)](/mdb-prop/1.md) [mdb-queries(1)](/mdb-queries/1.md)** **[mdb-schema(1)](/mdb-schema/1.md) [mdb-sql(1)](/mdb-sql/1.md) [mdb-tables(1)](/mdb-tables/1.md) [mdb-ver(1)](/mdb-ver/1.md)**

## AUTHORS

**The mdb-array utility was written by Brian Bruns.**
