Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

exp:expaccessimport

Import the tables of a Microsoft Access file (.accdb, .mdb) into the site's database or a data table connection.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expaccessimport.md

On this page

This page is a translation. Read the English original

exp:expaccessimport

Import the tables of a Microsoft Access file (.accdb, .mdb) into the site's database or a data table connection.

Skript bin/php/expaccessimport.php, Code in kernel/private/classes/commands/expaccessimport.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expaccessimport --help
./console exp:access:import --help
php bin/php/expaccessimport.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Import the tables of a Microsoft Access file into a database of this installation
Reads the file with MDBTools (Linux; read only) or with Microsoft's Access ODBC driver (Windows), makes
the tables in the site's database or in a data table connection (--connection), and copies the rows,
ids and all. Without --apply it shows the tables it would make and does nothing.

./console exp:access:import shop.accdb --list
./console exp:access:import shop.accdb --prefix=shop_
./console exp:access:import shop.accdb --prefix=shop_ --connection=archive --apply
./console exp:access:import shop.mdb --tables=Customers,Orders --mode=replace --apply --format=json

Exit code: 0 done (or planned); 1 a table or row failed; 2 wrong options or an unreadable file.

Optionen

OptionWertHilfe
--listList the tables of the file with their columns, and stop
--applyMake the tables and copy the rows (without it: show the plan only)
--dry-runShow the plan only (the default)
--connectionerforderlichThe database to import into: site (the default) or the identifier of a data table connection
--tableserforderlichOnly these Access tables (a comma list; names as in the file)
--prefixerforderlichPut this in front of every table name (lower case letters, digits, ), e.g. shop
--modeerforderlichcreate (the default: new tables only), append (add rows), replace (delete the rows first)
--readererforderlichauto (the default), mdbtools or odbc
--mdbtools-binerforderlichThe directory of the MDBTools programs (default: the PATH)
--drivererforderlichThe ODBC driver for --reader=odbc (default: Microsoft Access Driver (*.mdb, *.accdb))
--formaterforderlichtext (Standard) oder json

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Argumente: [file].

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expaccessimport.php, kernel/private/classes/commands/expaccessimport.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x