代码改变世界

sql语句

2015-10-28 11:08  breece  阅读(159)  评论(0编辑  收藏  举报

mysql -h host -u user -p;

load data local infile '/path/pet.txt' into table pet lines terminated by '\r\n';

insert into pet values('Puffball','Diane','hamster','f','1999-03-30',NULL);

insert into user(host,user,password,select_priv,insert_priv,uodate_priv) values('localhost','guest',PASSWORD('122'),'Y','Y','Y');

select host,user,passeword from user where user='guest';