基本mysql语句使用
1、插入语句insert into 第一种:没指定插入属性列 INSERT INTO user VALUES (1,'小明','15960233654'); 第二种:有指定插入属性列 INSERT INTO user (id,name) VALUES (1,'小明'); 2、更改语句Update 第一种:按条件更新单列 update user set telphone ='125466548' where id =1 第二种:按条件更新多列 update user set telphone ='125466548',`name`='张三' where id =1 3、删除语句delete from 按条件删除: delete from `user` where telphone=''
posted on 2013-09-24 11:20 阳光总在风雨后001 阅读(129) 评论(0) 编辑 收藏 举报