2006-12-28から1日間の記事一覧

テキストファイルで複数のレコードをテーブルに追加する方法

mysql> load data local infile 'c:\\mysql\\txt\\syohin.txt' into table t_syohin; Query OK, 10 rows affected (0.49 sec) Records: 10 Deleted: 0 Skipped: 0 Warnings: 0追加するデータ(タブ区切り) 100001 USBメモリー128 USBM 2500 100002 USBメモリ…

ネットワーク上のMySQLサーバに接続

C:\mysql\bin>mysql -h ibm -u ideg Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 to server version: 4.0.26-nt Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

MySQLで使用できるデータ型の一覧

カテゴリ データ型 概要 文字 char(n) nバイトの小手医長文字列 varchar(n) 最大nバイトの可変長文字列 tinytext 可変長文字列。それぞれ格納できる最大バイト数が異なる text 〃 mediumtext 〃 longtext 〃 数値 tinyint 整数型。それぞれ格納できる値の範…

指定ドライブでネットワークパスを共有する

net use m: \\ibm\mysql