MySQL基础教程——查询数据
SQL数据库开发
共 1685字,需浏览 4分钟
·
2020-09-16 20:36
点击上方SQL数据库开发,关注获取SQL视频教程
SQL专栏
SELECT column_name1,column_name2 FROM table_name [WHERE clause] [LIMIT N][ OFFSET M]
SELECT `姓名` FROM customers
SELECT `姓名`,`地址` FROM customers
SELECT * FROM customers;
SELECT DISTINCT 城市 FROM customers;
SELECT DISTINCT 城市,邮编 FROM customers;
SELECT DISTINCT 客户ID,城市 FROM customers;
SELECT * FROM customers LIMIT 3;
SELECT * FROM customers LIMIT 3,3;
SELECT customers.`客户ID`,orders.`客户ID`
FROM customers,orders
where customers.`客户ID`=orders.`客户ID`
——End——
后台回复关键字:1024,获取一份精心整理的技术干货 后台回复关键字:进群,带你进入高手如云的交流群。 推荐阅读 这是一个能学到技术的公众号,欢迎关注
评论