⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 数据检索.sql

📁 简单的sql语句 数据与汇总。 高手多多指点。
💻 SQL
字号:
use northwind

select productid,productname,supplierid,categoryid from products

select productid,productname from products
where productid=5

select * from [order details]
where orderid >= 10256

select * from products
where productname like 'qu%' or productname like'ch%'

select * from products
where productid in(1,2,3,4,5,6,8,9,10,11)and productname like 'c%'

select * from products
where productid between 1 and 5

select * from products
where productid in(1,5,6)

select * from suppliers
where fax is null and region is null and homepage is null

select* from suppliers 
where fax is not null

select distinct region from suppliers
order by region

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -