posts - 495,  comments - 11,  trackbacks - 0
          Enter password: ******
          Welcome to the MySQL monitor. Commands end with ; or \g.
          Your MySQL connection id is 2 to server version: 4.1.10-nt
          Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


          mysql> show databases
          -> ;
          +----------+
          | Database |
          +----------+
          | mysql |
          | test |
          +----------+
          2 rows in set (0.00 sec)
          mysql> create database soft;
          Query OK, 1 row affected (0.00 sec)
          mysql> show databases
          -> ;
          +----------+
          | Database |
          +----------+
          | mysql |
          | soft |
          | test |
          +----------+
          3 rows in set (0.00 sec)
          mysql> source info_web.sql
          ERROR 1046 (3D000): No database selected
          mysql> use soft;
          Database changed
          mysql> source info_web.sql
          Query OK, 0 rows affected (0.11 sec)
          mysql> source 2.sql;
          Query OK, 0 rows affected (0.08 sec)
          mysql> source 1.sql;
          Query OK, 0 rows affected (0.09 sec)
          mysql> show tables
          -> ;
          +----------------+
          | Tables_in_soft |
          +----------------+
          | info_web |
          | mainclass |
          | subclass |
          +----------------+
          3 rows in set (0.00 sec)
          mysql> show table info_web;
          ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
          corresponds to your MySQL server version for the right syntax to use near 'info_
          web' at line 1
          mysql>
          mysql> describe info_web;
          +------------+-------------+------+-----+---------------------+-------+
          | Field | Type | Null | Key | Default | Extra |
          +------------+-------------+------+-----+---------------------+-------+
          | id | varchar(32) | | PRI | | |
          | number | int(11) | YES | | NULL | |
          | iswarn | int(11) | YES | | NULL | |
          | title | text | YES | | NULL | |
          | power | int(11) | YES | | NULL | |
          | limit | int(11) | YES | | NULL | |
          | content | text | YES | | NULL | |
          | date | datetime | YES | | 0000-00-00 00:00:00 | |
          | persion_id | varchar(32) | YES | | NULL | |
          | visit_num | int(11) | YES | | NULL | |
          | pic_in | int(11) | YES | | NULL | |
          +------------+-------------+------+-----+---------------------+-------+
          11 rows in set (0.03 sec)
          mysql> describe mainclass
          -> ;
          +------------+--------------+------+-----+---------+----------------+
          | Field | Type | Null | Key | Default | Extra |
          +------------+--------------+------+-----+---------+----------------+
          | main_num | int(11) | | PRI | NULL | auto_increment |
          | main_name | varchar(32) | YES | | NULL | |
          | main_order | int(11) | YES | MUL | 0 | |
          | href | varchar(128) | YES | | NULL | |
          +------------+--------------+------+-----+---------+----------------+
          4 rows in set (0.00 sec)
          mysql> describe subclass;
          +----------+--------------+------+-----+---------+----------------+
          | Field | Type | Null | Key | Default | Extra |
          +----------+--------------+------+-----+---------+----------------+
          | sub_num | int(11) | | PRI | NULL | auto_increment |
          | main_num | int(11) | YES | MUL | NULL | |
          | sub_name | varchar(64) | YES | | NULL | |
          | href | varchar(128) | YES | | NULL | |
          | isuse | int(11) | YES | | NULL | |
          +----------+--------------+------+-----+---------+----------------+
          5 rows in set (0.00 sec)
          mysql>
          posted on 2007-08-19 04:29 jadmin 閱讀(44) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 常德市| 通化市| 彝良县| 正定县| 繁峙县| 永顺县| 旬邑县| 宁德市| 无棣县| 广西| 迁安市| 丰原市| 元朗区| 泽普县| 巴马| 普安县| 东平县| 南陵县| 旅游| 建水县| 资源县| 梨树县| 繁峙县| 梁河县| 洪江市| 阳曲县| 大姚县| 榆社县| 武汉市| 神木县| 兴安盟| 禹州市| 乌兰县| 尚志市| 郑州市| 吉水县| 滁州市| 商河县| 贵溪市| 泉州市| 新田县|