选择在tea表中选择teaage等于19岁,叫汪雪的
select*from tea where teaage='19'&&stuname='张雪'
在stu找出大于20岁的女同学的姓名、学号
select stuname,stuid from stu where teaage='19'&&stusex='女';
选择tea表中teaname有姓李
select*from tea where teaname like '李%';
在tea表中teaage按降序方法来排序
select*from tea order byteaage desc;
在tea中给teaidA0006的teasex改为女
update tea set teasex=where teaid ='A0006';
删除一行id=1
delete from 表明 where id=1;
给root授权
grant all privileges on *.*(备注指所有库,具体可以是mysql)to 'root' @ %(所有ip具体192.168.1.117) identified by '123456'(密码)。
rpm -q查询rpm 包是否安装
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h1>热点推荐</h1>
<a href="http://news.sina.com.cn/c/nd/2016-01-18/doc-ifxnqriz9782665.shtml" target="_self"> ***访问中东 <img src="http://n.sinaimg.cn/news/transform/20151125/-duM-fxkwvap1715252.jpg"></a>
</body>
</html>
<dl>
<dt><img src="p_w_picpaths/photo_02.jpg" alt"商品1" tile="服装1"/>
<dd>一口价:<span>49</span> </dd>
</dt>
<dt></dt>
</dl>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h4>网页搜索</h4>
<iframe width="90%"
frameborder="1" scrolling="yes" height="400px"
src="http://www.baidu.com" name="topFrame">
</iframe>
<p><a href="http:?/www.baid.com" target="topFrame">百度</a>
<a href="http://www.sohu.com" target="topFrame">搜狐</a>
</p>
</body>
</html>
建立库create database sms