~~~~~~~~~~~~~~~~~~~~~~~~~~·
C:\Users\Administrator>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.5.27 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database a1;
Query OK, 1 row affected (0.00 sec)
mysql> use a1;
Database changed
mysql> create table a(
-> uid int primary key auto_increment,
-> mname varchar (40)not null,
-> age int ,
-> school varchar (20)not null,
-> hobby varchar (30)not null,
-> speciality varchar (25)not null
-> );
Query OK, 0 rows affected (0.13 sec)
mysql> insert into a(name,age,school,hobby,speciality)value('额',1,'呃','の','鄂');
ERROR 1054 (42S22): Unknown column 'name' in 'field list'
mysql> insert into a(mname,age,school,hobby,speciality)value('额',1,'呃','の','鄂');
Query OK, 1 row affected (0.03 sec)
mysql> drop database a1;
Query OK, 1 row affected (0.11 sec)
|
|