ADO.NET 作业总结难点
数据库语句掌握太差
//查询
select * from Users //查询表中所有数据
select * from Users where UserName = 'lisi' //查询单条数据
select UserName from Users // 查询UserName所有数据
//删除
delete from Users //删除表中所有数据
delete from Users where UserName = "lisi"//删除单条表中数据
//增加
insert into Users values('','','','','','') // 增加表中数据
//修改
update Users set Password = '123456' where UserName = 'lisi' //修改表中lisi的密码
突然灵机一动把问题解决了,很舒服!!!!