cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount
crea e importa

esempio classico da tastiera

$ mysql --version
mysql  Ver 9.33 Distrib 3.22.25, for pc-linux-gnu (i686)
$ uname -a
Linux xxx.com 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999 i586 unknown
$ mysql -e 'CREATE TABLE imptest(id INT, n VARCHAR(30))' test
$ ed
a
100     Max Sydow
101     Count Dracula
.
w imptest.txt
32
q
$ od -c imptest.txt
0000000   1   0   0  \t   M   a   x       S   y   d   o   w  \n   1   0
0000020   1  \t   C   o   u   n   t       D   r   a   c   u   l   a  \n
0000040
$ mysqlimport --local test imptest.txt
test.imptest: Records: 2  Deleted: 0  Skipped: 0  Warnings: 0
$ mysql -e 'SELECT * FROM imptest' test
+------+---------------+
| id   | n             |
+------+---------------+
|  100 | Max Sydow     |
|  101 | Count Dracula |
+------+---------------+

prova importazione da Access

  1. esportare la tabella in formato testo, campi separati da tabulatore, senza virgolette per delimitare il testo
  2. copiare il file ASCII sul server
  3. rinominare il file con il nome della tabella ed estensione .txt
  4. creare la tabella:
    $ mysql -e 'CREATE TABLE prova(codice INT NOT NULL, nome VARCHAR(50))' test
    $
    $ mysqlshow test prova
    database: test  Table: prova  Rows: 0
    +--------+-------------+------+-----+---------+-------+
    | Filed  | Type        | Null | Key | Default | Extra |
    +--------+-------------+------+-----+---------+-------+
    | codice | int(11)     |      |     | 0       |       |
    | nome   | varcher(50) | YES  |     |         |       |
    +--------+-------------+------+-----+---------+-------+
    
    
  5. importare i dati:
    $ mysqlimport --local test prova.txt
    test.prova: Records: 2  Deleted: 0  Skipped: 0  Warnings: 0
    
  6. verificare:
    $ mysql -e 'SELECT * FROM prova' test
    +--------+---------------+
    | codice | n             |
    +--------+---------------+
    |  100   | Max Sydow     |
    |  101   | Count Dracula |
    +--------+---------------+
    
  7. cancellare la tabella:
    $ mysql -e 'DROP TABLE prova' test
    $