1.limit 语法:限制查询记录,进行分页处理:select * from article limit 0,10;(从0号记录开始,依次取10条记录)
2.like 语法:查询指定字符串的相似匹配记录: select * from article where title like '搜索内容' or content like '搜索内容';(查询表中字段为title,content的值与搜索内容相似的记录)
相关文章
- SQL语法基础之UPDATE语句
- intellisense_使用和疑难解答SQL Server IntelliSense –适用于SQL Server 或更高版本
- [转载]SQL Server内核架构剖析
- sql5个问题
- 报错:org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
- 报错org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet"
- 数据分页处理系列之一:Oracle表数据分页检索SQL
- Elasticsearch-sql 用SQL查询Elasticsearch
- 数据库表中存在Text类型的属性时,写sql语句时需要注意喽!
- SQL语句:把Excel文件中数据导入SQL数据库中的方法