Mysql语句

Mysql语句

1、添加到表里:“insert into student (sid,sname,sage) values ('"+id+"','"+name+"','"+age+"')"

2、删除表里一行数据:delete from student where sid ='"+id+"'

3、修改表里的一行数据:"UPDATE student SET sid='"+id+"',sname='"+name+"',sage='"+age+"' WHERE sid='"+line_id+"'"

4、更新页面 response.sendRedirect("list.jsp");

猜你喜欢

转载自blog.csdn.net/sm16111/article/details/80259163
今日推荐