插入一个数据
insert into person(name,Age) values(‘liuming’,22);
insert into person values(‘liuming’,22);
insert into person(id,name,Age) values(newid‘liuming’,22);
更新所有数据
uodate person set age=30 更新所有age数据
uodate person set age=30 ,name=’lucy‘;
update person set age=age+1;
更新 某些数据
update person set name=N‘年轻人’
vhere age>=20
满足后面的条件才执行
update person set name=N‘年轻人’
vhere age=20 不是age==20!!!!!!!!!
不等于<>和!=
update person set name=N‘年轻人’
vhere age>=20 or age<30
vhere age>=20 and age<30
vhere age>=20 not age<30
(vhere age>=20 or age<30)or(age=80)
删除表中数据
delete form person 删除表中的数据
Drop person删除表
delete form person where age>20 删除表中的符合条件的数据作者: ﹏Lifeヽ 时间: 2013-6-15 23:23
哈哈、学习、学习ing作者: nilaoyededie 时间: 2013-6-15 23:26
加油!笔记是必要的!我以前学的都忘了差不多了!!