首頁 > 資料庫 > mysql教程 > NorthWind数据库

NorthWind数据库

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-07 16:02:30
原創
2721 人瀏覽過

NorthWind 数据库 Categories:产品类别;Customers:客户;Employees:雇员Employees Territories:员工涉及领域Order Details:订单明细Orders:订单Products:产品Region:地区Shippers:运货商Suppliers:供应商TerritZ喎?http://www.2cto.com/kf/ware/vc/"

NorthWind 数据库

\
Categories:产品类别;Customers:客户;Employees:雇员Employees Territories:员工涉及领域Order Details:订单明细Orders:订单Products:产品Region:地区Shippers:运货商Suppliers:供应商TerritZ喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcmllc6O6tdjT8goKICAgICAgICDU2k5vcnRoV2luZMr9vt2/4tbQtLS9qLnYz7XNvKO6CjxpbWcgc3JjPQ=="http://www.2cto.com/uploadfile/Collfiles/20140909/2014090909090740.jpg" alt="\">
下面进行几次查询了解数据内容:
select productid,productname,unitprice from Products
where UnitPrice>49
登入後複製
查询结果: \
select productid,productname,UnitsInStock,UnitsOnOrder
 from Products where UnitsInStock<UnitsOnOrder
登入後複製
查询结果: \
select * from Products
where ProductName=&#39;Aniseed Syrup&#39; or ProductName=&#39;Ipoh Coffee&#39;
登入後複製
select * from Products
where ProductName in(&#39;Aniseed Syrup&#39;,&#39;Ipoh Coffee&#39;)
登入後複製
查询结果:
\
select * from Products
where SupplierID=CategoryID
登入後複製
查询结果: \
select SupplierID,CompanyName,Phone,Fax from Suppliers
where Phone is not null and fax is null
登入後複製
\
select * from Suppliers
order by City  desc
登入後複製
\
select SupplierID,CompanyName,Country from Suppliers
where Country in(&#39;USA&#39;,&#39;UK&#39;,&#39;Germany&#39;)
登入後複製
\
select SupplierID,CompanyName,ContactTitle,Phone 
from Suppliers
where  ContactTitle=&#39;Marketing Manager&#39; and Phone is not null
登入後複製
\
select distinct ShipVia from Orders
登入後複製
\
select distinct ShipCity from Orders
登入後複製
\
select OrderID,ShippedDate,RequiredDate from Orders
where ShippedDate>RequiredDate
登入後複製
\
select OrderID,CustomerID,Freight from Orders
where Freight<55
登入後複製
\
select * from Categories
where CategoryName like &#39;_e%&#39;
登入後複製
\
select * from Categories
where Description like &#39;%sweet%&#39;
登入後複製

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板