選擇在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="images/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